Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bracket notation javascript


const person = {
  firstname: 'John',
  lastname: 'Doe'
};

console.log(person['lastname']);
// expected output: "Doe"
 
PREVIOUS NEXT
Tagged: #bracket #notation #javascript
ADD COMMENT
Topic
Name
1+8 =