Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object destructuring

const user = {
  name: "Jenny",
  age: "12",
  hobbies: ["Sport", "Programmieren", "essen"],
};

const { age } = user;
console.log(age);
Source by dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #object #destructuring
ADD COMMENT
Topic
Name
8+1 =