Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

const name value = event.target

let person = {
  name: 'David',
  age: 15,
  job: 'Programmer'
}

const { name, age } = person; // Takes the property/method from the object

console.log(name); // Prints 'David'
console.log(age); // Prints '15'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #const
ADD COMMENT
Topic
Name
7+2 =