Friday , September 20 2024

Analyze the following code: let test = prompt(“Hello”, “World”); What value will the test variable have if, after running the code, we immediately press the OK button on the newly created dialog?

Questions BankCategory: JavaScript Essentials 1Analyze the following code: let test = prompt(“Hello”, “World”); What value will the test variable have if, after running the code, we immediately press the OK button on the newly created dialog?
Analyze the following code:

let test = prompt("Hello", "World");

What value will the test variable have if, after running the code, we immediately press the OK button on the newly created dialog?

  • “OK”
  • “World”
  • true
  • “Hello”

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