Multiple Choice Question (MCQ)

Question: What will be the output for the following JavaScript code?
var x = 13 +'03'
Alert(x);
A. 16
B. 133
C. 1303
D. 13 03
Correct Answer: 1303
Explanation

The output of this code will be the string "1303". In JavaScript, when a number and a string are added together using the "+" operator, JavaScript will convert the number to a string and concatenate the two values together. So, the number 13 is converted to the string "13" and then concatenated with the string "03" to form the final string value "1303".