JavaScript Quiz Questions 11-20
Question 11 What will the following code output? console.log(1 + “2” + “2”); a) 5b) “32”c) “122”d) NaN Answer: c) “122” Explanation: When adding a number to a string, JavaScript performs string concatenation. 1 + “2” results in “12”, and then “12” + “2” results in “122”. Question 12 What is the output of the … Read more