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