Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js concat

let a = "foo";
let b = ["f", "o", "o"];

let c = a.concat("bar");           // "foobar"
let d = b.concat(["b", "a", "r"]); // ["f","o","o","b","a","r"]
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #js #concat
ADD COMMENT
Topic
Name
2+8 =