Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Destructing variable assignment

let profile = ['bob', 34, 'carpenter'];let [name, age, job] = profile;console.log(name);--> 'bob'
Source by levelup.gitconnected.com #
 
PREVIOUS NEXT
Tagged: #Destructing #variable #assignment
ADD COMMENT
Topic
Name
9+8 =