String Concatenation Quiz
Multiple Choice Beginner
Question
What is the result of `"5" + 3` in JavaScript?
Hint
When one operand is a string, + does concatenation.
Explanation
When either operand of + is a string, JavaScript performs string concatenation, converting the other operand to a string. So "5" + 3 becomes "5" + "3" = "53" (a string). This is a common source of bugs — use Number() or template literals to be explicit.
Related Resources
Related Lessons
- JavaScript Data Types
Learn about type coercion.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.