Object-Oriented JavaScript

Javascript-Logo-Frontend-Labs

Objects are used to represent the real world entities in our code like bank account, books, person, etc, by storing all relevant information in one place, i.e, an object. We have two ways to create objects in javascript, i.e., ‘Literal notation’ and ‘Constructor functions notation’.

You must be thinking what are they and what is the difference between them? Right! Let’s start with the object definition :

Constructor functions notation

Literal Notation

Read more about Object-Oriented JavaScript visit Findnerd.

Advertisements
Object-Oriented JavaScript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s