{"id":165,"date":"2014-03-11T19:36:54","date_gmt":"2014-03-11T19:36:54","guid":{"rendered":"http:\/\/www.javascripttutorials.net\/?p=165"},"modified":"2020-05-04T23:48:50","modified_gmt":"2020-05-04T21:48:50","slug":"four-layers-of-javascript-oop","status":"publish","type":"post","link":"https:\/\/www.javascripttutorials.net\/four-layers-of-javascript-oop\/","title":{"rendered":"Four Layers of JavaScript OOP"},"content":{"rendered":"<p>Object-oriented programming (OOP) in JavaScript is complex. To make it easier to understand, this webcast explains it via four layers:<!--more--><\/p>\n<p>1. Simple objects<br \/>\n2. Prototype chains<br \/>\n3. Constructors<br \/>\n4. Inheritance between constructors<\/p>\n<p>Each new layer only depends on prior ones, enabling you to learn JavaScript OOP incrementally. Additionally, layers 1 and 2 form a simple core that you can refer back to whenever you are getting confused.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Four Layers of JavaScript OOP - O&#039;Reilly Webcast\" width=\"730\" height=\"548\" src=\"https:\/\/www.youtube.com\/embed\/VJOTcUsD2kA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Object-oriented programming (OOP) in JavaScript is complex. To make it easier to understand, this webcast explains it via four layers:<\/p>\n","protected":false},"author":1,"featured_media":261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-object-oriented"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":0,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media\/261"}],"wp:attachment":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}