Constructor Functions
In traditional OO languages, constructor functions are a normal part of the code. Constructor functions are denoted by a capital letter by practice. Constructor functions look like “regular functions, but behave differently. Here is an example… Notice the capital “A”. That is a JavaScript constructor function convention. Also, notice we are using the “new” keyword. […]
Constructor Functions Read More »