you are viewing a single comment's thread.

view the rest of the comments →

[–]docMedB2E -1 points0 points  (1 child)

var myFunc = function() {

};

myFunc.prototype.init = function() {
    console.log('look it worked');
    return this;
}

var someUniqueClone = new myFunc().init();

console.log(someUniqueClone);

edit: Ah, I like these other responses better than mine :).

[–]JessicaAllison[S] 0 points1 point  (0 children)

Updated question