Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript spread syntax

let arr1 = ['one', 'two'];
let arr2 = [...arr1, 'three', 'four', 'five'];
console.log(arr2); // ["one", "two", "three", "four", "five"]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #spread #syntax
ADD COMMENT
Topic
Name
2+3 =