In JavaScript objects, the name:value pairs are called properties. Here, the object contains 4 properties for the variable called person:
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
# | Property Name | Property Value |
---|---|---|
1 | firstName | John |
2 | lastName | Doe |
3 | age | 50 |
4 | eyeColor | blue |