Do you know what will be the output of this code?
JavaScript
console.log("5" * "2");
Show answer and explanation
The answer is 10.
*, - and / only work with numbers, so both strings are converted to numbers first. Only + has a string mode: "5" + "2" would give "52".