{"id":967,"date":"2022-08-30T15:10:10","date_gmt":"2022-08-30T15:10:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/javascript-prototype-definition-property-not-found-closed-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:10:10","modified_gmt":"2022-08-30T15:10:10","slug":"javascript-prototype-definition-property-not-found-closed-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/javascript-prototype-definition-property-not-found-closed-collection-of-common-programming-errors\/","title":{"rendered":"Javascript prototype definition&hellip; property not found? [closed]-Collection of common programming errors"},"content":{"rendered":"<p>Please remove the comma after compute function Just <code>}<\/code> not <code>},<\/code> (Note the trailing <code>,<\/code>). As the last function in the prototype should end with closed praises only the final correct code is<\/p>\n<pre><code>var AACore = function() {\n\n};\n\nAACore.prototype = {\ninit: function() {\n},\n\n    compute: function() { console.log(\"doing stuff\"); }\n};\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:08:22. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>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(&#8220;doing stuff&#8221;); } }; Originally posted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-967","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=967"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/967\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}