Constructors

Constructors are your virtual workers in the JS universe, and can create “Objects”, and attach a “Prototype Object”, doing so we can replicate the code dynamically and have a ever expanding code.

with the following results

Adding Functions to the .prototype

with following output:

Arguments (parameters): for Custom Objects

results:

.



Copyright 2017. All rights reserved.

Posted January 23, 2017 by Edmundo in category "JS