sajithsiva
9/25/2017 - 9:14 PM

Build JavaScript Objects

//Build JavaScript Objects
//Objects are similar to arrays, except that instead of using indexes to access and modify their data, 
//you access the data in objects through what are called properties.

var cat = {
  "name": "Whiskers",
  "legs": 4,
  "tails": 1,
  "enemies": ["Water", "Dogs"]
};