Question 2
What will be the output of the following code snippet?
let result = "";for (let i = 0; i < 3; i++) { for (let j = 0; j < 2; j++) { result += " " + i + j + " "; }}console.log(result);What will be the output of the following code snippet?
let result = "";for (let i = 0; i < 3; i++) { for (let j = 0; j < 2; j++) { result += " " + i + j + " "; }}console.log(result);Correct answer
Question 2 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term (IIT M DIPLOMA AN EXAM QDD2 7 July 2024). It carries 2 marks.