Questions Bank November 5, 2022 Comments Off on Questions Bank Questions Bank › Category: JavaScript Essentials 1The string “12” has been written into the str variable: (let str = “12”;). Then the operation str = +str is performed. As a result, the variable str will contain:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The methods window.alert, window.confirm, and window.prompt are methods of the window object. Which of the following is not true?OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1Analyze the code snippet: let n = 2 * 3 ** 3 – 1; The result stored in the variable n is:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The result of the operation 20 || 5 will be:OpenProgrammingAnswers asked 2 years ago • 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?OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The number 2 is stored in the variable n (let n = 2;). The command n = n*n*n is then called. This last command can be replaced by:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The result of the operation false || “false” will be:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1Which operator do we use if we want to check if two variables store the same values of exactly the same type?OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The confirm method allows you to create a dialog box. What value does this method return when the user closes the window?OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1Analyze the code snippet: let n = 10; let m = ++n; Its execution will result in the following values in the variables n and m:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The result of the operation 3 * 4 > 20 – 15 will be:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1Analyze the code snippet: let nr = “1”; let x = (nr === 1); let y = (nr == 1); let z = (nr = 1); After its execution, the variables x, y, and z will have the values:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The result of the comparison “abcd” > “Abcd” will be:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1The result of the operation !(true && false || true) will be:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1We can replace the declaration let x = 0x21; with:OpenProgrammingAnswers asked 2 years ago • JavaScript Essentials 1 Share Facebook Twitter Stumbleupon LinkedIn Pinterest