instantiate js

JavaScript
function employer(name) { this.name = name;};

var fred = new employer('Fred');

Source

Also in JavaScript: