JavaScript Output Prediction Easy +10 XP
Type Coercion
What is the output?
JavaScriptRead-only
console.log(5 + "3");
What is the output?
Show answer and explanation
Answer: 53
When you add a number and a string, JavaScript converts the number to a string and concatenates them.
Hint: JavaScript converts types automatically.
What this challenge tests
Output Prediction in JavaScript: type-coercion, basics.