In this video, i'm going to show how to use JavaScript Objects.
JavaScript Objects:
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}; // create an Object
Accessing Object Properties:
You can access object properties in two ways:
objectName.propertyName
or
objectName["propertyName"]
JavaScript Objects:
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}; // create an Object
Accessing Object Properties:
You can access object properties in two ways:
objectName.propertyName
or
objectName["propertyName"]
EmoticonEmoticon