Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

spread operator javascript

const parts = ['shoulders', 'knees']; 
const lyrics = ['head', ...parts, 'and', 'toes']; 
//  ["head", "shoulders", "knees", "and", "toes"]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #spread #operator #javascript
ADD COMMENT
Topic
Name
5+7 =