Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #The #String #Operator
ADD COMMENT
Topic
Name
9+6 =