CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Coercion in Mixed Expressions

JavaScript code walkthrough · Question 49
hardCasting

Code

Read carefully. What does this print?
1console.log(true + true);
2console.log("5" - 2);
3console.log("5" + 2);
4console.log(10 + 20 + "px");
5console.log("$" + 10 + 20);

Your answer