Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ES5 Assigning Variables to Object Properties

var obj = {
  numbers: {
    a: 1,
    b: 2
  }
};

const {a, b} = obj.numbers
Source by curric.rithmschool.com #
 
PREVIOUS NEXT
Tagged: #Assigning #Variables #Object #Properties
ADD COMMENT
Topic
Name
1+6 =