Question 2
Consider the following JavaScript code snippet.
What will be printed on the console?
2
4
Undefined
Error
Consider the following JavaScript code snippet.
What will be printed on the console?
2
4
Undefined
Error
Correct answer
4
Question 2 of 29 in the IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 21 Dec 2025, in the September 2025 term (Modern Application Development Ii 18 Dec 25). It carries 3 marks.