Create object using function constructor Javascript

Creating a constructor function in JavaScript. This function has the name "Employee" and accepts a series of input parameters: name, yearBirth, gender.
Parameters use the "this" keyword to define a series of internal properties or methods "function" that will form a custom object.
A new instance called "employee1" can be created from the constructor function by using the new keyword.

Comments

PHP Captcha


Interesting Articles