new Object with attribute



examples/objects/new_object_with_attribute.js
"use strict";

var MyPerson = function(fname) {
    this.first_name = fname;
}

var m = new MyPerson('Foo');
console.log(MyPerson); // function MyPerson()
console.log(m);        // Object {  }