Advertisement

On Constructors

  • Martin Rinehart
Chapter
  • 2.9k Downloads

Abstract

Some say you should never use the new operator in your JavaScript. I use it when I want to create a family of objects all varying in their data properties’ values. That is just what OOP languages do. We think the huge success of C++, Java, and other OOP languages tells you that this paradigm commonly matches at least some of the realities our programs model.

Keywords

Prototype Property Prototypal Inheritance JavaScript Constructs Class-based Inheritance Dynamic Prototype 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Martin Rinehart 2015

Authors and Affiliations

  • Martin Rinehart
    • 1
  1. 1.NYUSA

Personalised recommendations