Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to concatenate in javscript

var one = 'Hello';
var two = 'World';

console.log(one + two);
It will print: HelloWorld

console.log(one + ' ' + two);
It will print: Hello World
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #concatenate #javscript
ADD COMMENT
Topic
Name
9+2 =