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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Martin Rinehart
About this chapter
Cite this chapter
Rinehart, M. (2015). On Constructors. In: JavaScript Object Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1787-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1787-0_9
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1786-3
Online ISBN: 978-1-4842-1787-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)