boolean.js 781 B

123456789101112131415161718192021222324
  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. var x = true;
  6. var y = false;
  7. WScript.SetTimeout(testFunction, 50);
  8. /////////////////
  9. function testFunction()
  10. {
  11. telemetryLog(`x: ${x}`, true); //true
  12. telemetryLog(`y: ${y}`, true); //false
  13. telemetryLog(`x === y: ${x === y}`, true); //false
  14. telemetryLog(`x && y: ${x && y}`, true); //false
  15. telemetryLog(`x || y: ${x || y}`, true); //true
  16. emitTTDLog(ttdLogURI);
  17. }