Introducing object part 2
Object Properties
You can access object properties in two ways.objectName.propertyName
//or
objectName['propertyName']
This example demonstrates how to access the age of our person object.
JavaScript's built-in length property is used to count the number of characters in a property or string.
Objects are one of the core concepts in JavaScript.
Comments
Post a Comment