September 2024
Beginner to intermediate
985 pages
35h 37m
English
In contrast to prototypical object orientation, pseudoclassical object orientation is based on the use of constructor functions. The idea is that object-oriented programming with JavaScript feels like doing class-based programming.
Remember: constructor functions are nothing more than "normal" functions. They only become constructor functions by calling them prefixed with new. Moreover, they’re usually written in UpperCamelCase notation (thus following the conventions of good software development). Within a constructor function, the this keyword then refers to the object created by calling the constructor function. An example of a constructor function is shown ...
Read now
Unlock full access