fromCharCode.js 582 B

1234567891011121314151617
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function test(arg) {
  6. var x = String.fromCharCode(arg).charCodeAt();
  7. WScript.Echo(x);
  8. }
  9. test(0);
  10. var charCode = 0xFFFC;
  11. for(var i = 0; i < 10; i++){
  12. test(charCode);
  13. charCode++;
  14. }