Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what concatenation in javascript

/*
Note:

Concatenation in javascript
Concat() The concat() method is used to merge two or more arrays. 
This method does not change the existing arrays but instead returns a new array.
Concatenation is when you add string to an integer then the integer becomes a string.
*/


//CODE//

var myAge = 100;
console.log("My age is" + myAge);
myAge = 29;
console.log("My age next year will be" + myAge);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #concatenation #javascript
ADD COMMENT
Topic
Name
5+8 =