Javascript prototype definition… property not found? [closed]-Collection of common programming errors

Please remove the comma after compute function Just } not }, (Note the trailing ,). As the last function in the prototype should end with closed praises only the final correct code is

var AACore = function() {

};

AACore.prototype = {
init: function() {
},

    compute: function() { console.log("doing stuff"); }
};

Originally posted 2013-11-09 23:08:22.