Join TalkersCode Now !

Get Latest Tutorials And Links On Web Development
And Get Existing Offers Via Email

Javascript Objects

Javascript Objects

An object is a composite value it aggregates multiple values (primitive values or other objects) and allows you to store and retrieve those values by name.


An object is an unordered collection of properties, each of which has a name and a value.

Create Objects

You can create objects with the new keyword.


Syntax


var info = new object();


Object Properties

To create or set a property, use a dot or square brackets


Syntax


info.studentName = " Rahul ";
info["course"] = " Rahul ";


Object Methods

To create or set a property, use a dot or square brackets


Syntax


document.write("This is example of Methods");
PreviousNext

Join Us With Our 21000+ Subscribers And Get Our Latest Tutorials Update Via Email

Are You Starting A New Blog
Do You Want Best Web Hosting?

Try World's Best Web Hosting Provider BlueHost
At Just $3.95/mo

Hurry Up! Limited Time Offer

Yes, I Want To Check Out BlueHost

Check The World's Best SEO And All-In-One Marketing Toolkit
For Digital Marketing Professionals SEMRUSH

Check Out SEMRUSH