Wednesday, September 8, 2021

Constructor and instances in javascript

 


Constructor is the blueprint to create object .Here person is the constructor from which we can create objects. jane,mark and john are the 3 instances of person constructor.

No comments:

Post a Comment

Clean code chapter 3(Robert C.martin)

  Summary: --------  1. Functions should hardly ever be 20 lines long.  2.Keep blocks (inside if, else, while, for, etc.) short.  Ideally, j...