Friday , September 20 2024

Review the following code: let x = 100; if (x < 100) x = 20; console.log(x) What will be displayed in the console as a result of its execution?

Questions BankCategory: JavaScript Essentials 1Review the following code: let x = 100; if (x < 100) x = 20; console.log(x) What will be displayed in the console as a result of its execution?
Review the following code:

let x = 100;
if (x < 100)
    x = 20;
console.log(x)

What will be displayed in the console as a result of its execution?

  • 20
  • nothing
  • 100
  • false

More Questions: JavaScript Essentials 1 – JSE1: Module 4 Test