Objects: Grouping Data Together

Create person profiles and game characters with objects.

Objects group related values with named properties.

const hero = {
  name: "Nova",
  hp: 100,
  level: 3
};
console.log(hero.name);

Objects model real-world things in code.

Try in Playground