Properties are the values associated with an object.The syntax for accessing the property of an object is:objectName.propertyNameThis example uses the length property of the String object to find the length of a string:var message="Hello World!";var x=message.length;The value of x, after execution of the code above will be:12
Javascript
Topic: JS Objects
How to Accessing Object Properties?
Browse random answers:
What is a javascript object ?
How to create an Object in JavaScript ?
What are windows object and navigator object in JavaScript?
How do you assign object properties in JavaScript?
How can JavaScript language be separated from objects?
What are the different objects used in JavaScripts?
Why is object naming important to use in JavaScript?
How do you assign object properties?
What is this keyword?
How to Accessing Object Properties?
How to Accessing Objects Methods?
What's the Date object using JavaScript?