Thursday , September 19 2024

Review the following code: let x = 10; function test(x) { console.log(x); } test(20); What will be displayed in the console as a result of its execution?

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

let x = 10;

function test(x) {
    console.log(x);
}

test(20);

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

  • Nothing will show up.
  • "x"
  • 10
  • 20

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