{"id":1160,"date":"2017-01-29T18:38:21","date_gmt":"2017-01-29T18:38:21","guid":{"rendered":"https:\/\/sandbox.gloop.org\/blog\/?p=1160"},"modified":"2017-01-29T18:38:21","modified_gmt":"2017-01-29T18:38:21","slug":"javascript-classes-introduced-in-es62015","status":"publish","type":"post","link":"https:\/\/sandbox.gloop.org\/blog\/2017\/01\/29\/javascript-classes-introduced-in-es62015\/","title":{"rendered":"JavaScript classes introduced in ES6\/2015"},"content":{"rendered":"<blockquote><p>JavaScript classes\u00a0introduced in ECMAScript 2015 are syntactical sugar over JavaScript&#8217;s existing prototype-based inheritance.<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Classes\">Classes &#8211; JavaScript | MDN<\/a><\/em><\/p>\n<p>As a backend guy, I don&#8217;t look at JS very often. This seems like a big improvement to readability. Like probably a lot of other people, I approached JS expecting it to be <a href=\"https:\/\/en.wikipedia.org\/wiki\/Smalltalk\">Smalltalk<\/a>-style oop (like python\/ruby) and was nonplussed. In fact it&#8217;s based on a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Prototype-based_programming\">different model altogether<\/a> other examples of which you&#8217;ve probably never heard of.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript classes\u00a0introduced in ECMAScript 2015 are syntactical sugar over JavaScript&#8217;s existing prototype-based inheritance. Source: Classes &#8211; JavaScript | MDN As a backend guy, I don&#8217;t look at JS very often. This seems like a big improvement to readability. Like probably a lot of other people, I approached JS expecting it to be Smalltalk-style oop (like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/comments?post=1160"}],"version-history":[{"count":1,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/posts\/1160\/revisions"}],"predecessor-version":[{"id":1161,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/posts\/1160\/revisions\/1161"}],"wp:attachment":[{"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/categories?post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sandbox.gloop.org\/blog\/wp-json\/wp\/v2\/tags?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}