Understanding Objects as Key-Value Pairs in Javascript


Store and access data using keys and values.

Source Code

let person = {
  name: "John",
  age: 30,
  isStudent: false
};
console.log(person.name); // "John"
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments