Abstract
JavaScript contains a data structure called Objects. Objects help you organize code and they make it easier to work with in certain cases. There are two ways of creating objects: by using an object initializer or by using constructor functions. In this chapter we’ll create a single object using an object initializer, while constructor functions act as a blueprint from which we can create many object instances using the new keyword.
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
© 2018 Engin Arslan
About this chapter
Cite this chapter
Arslan, E. (2018). Objects. In: Learn JavaScript with p5.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3426-6_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3426-6_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3425-9
Online ISBN: 978-1-4842-3426-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books