Thursday, 14 July 2016

Object-Oriented JavaScript


Javascript-Logo-Frontend-Labs.png

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.

No comments:

Post a Comment