Answers for "Rest and spread operators in ES6"

0

Rest and spread operators in ES6

var array = ['red', 'blue', 'green']
var copyOfArray = [...array]

console.log('Copy of', array, 'is', copyOfArray)
console.log('Are', array, 'and', copyOfArray, 'same?', array === copyOfArray)
Posted by: Guest on April-10-2022

Code answers related to "Rest and spread operators in ES6"

Code answers related to "Javascript"

Browse Popular Code Answers by Language