Edit in JSFiddle

function Member() {
    //Properties
    this.name = "Max";
    this.age = "28";
    //functions
    this.sayHello = function() {
        return this.name + " Says Hello";
    }
}
//Creating person instance
var m = new Member();
document.write(m.sayHello());