how to instantiate a function in javascript code example
Example: instantiate js
function employer(name) { this.name = name;};
var fred = new employer('Fred');
function employer(name) { this.name = name;};
var fred = new employer('Fred');