Predict the output of the following javascript code
console.log(1 + 2 + '3' - 4 + 5);
Quiz Explanation
The output is 34 because 1 + 2 equals 3, which is concatenated with '3' to form "33", then 4 is subtracted, resulting in 29, and finally, 5 is added to give 34. Learn