Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

destructuring array ES6

let a = 8, b = 6;
[a, b] = [b, a];
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #destructuring #array
ADD COMMENT
Topic
Name
1+4 =