toString1.js 635 B

123456789101112131415161718
  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 write(v) { WScript.Echo(v); }
  6. write(null);
  7. write(undefined);
  8. write(10);
  9. write(1.24);
  10. write(true);
  11. write(false);
  12. var o = new Object()
  13. write(o);
  14. write(Object.prototype.toString.apply(null));
  15. write(Object.prototype.toString.apply(undefined));