4.7.1. The String Operator +¶ code example
Example: 4.7.1. The String Operator +¶
/*Let's compare + used with numbers to + used with strings.*/
console.log(1 + 1);
console.log("1" + "1");
//2
//11
/*Let's compare + used with numbers to + used with strings.*/
console.log(1 + 1);
console.log("1" + "1");
//2
//11