{"id":8299,"date":"2022-06-11T15:08:59","date_gmt":"2022-06-11T15:08:59","guid":{"rendered":"https:\/\/phpcodez.com\/?p=8299"},"modified":"2022-06-11T15:08:59","modified_gmt":"2022-06-11T15:08:59","slug":"classes-javascript","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/classes-javascript\/","title":{"rendered":"Classes Javascript"},"content":{"rendered":"<p>Introduced in the ES6 version, classes are nothing but syntactic sugars for constructor functions.<\/p>\n<p>They provide a new way of declaring constructor functions in javascript.<\/p>\n<p>Unlike functions, classes are not hoisted. A class cannot be used before it is declared.<\/p>\n<p>A class can inherit properties and methods from other classes by using the extend keyword.<\/p>\n<p>All the syntaxes inside the class must follow the strict mode(\u2018use strict\u2019) of javascript. Error will be thrown if the strict mode rules are not followed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduced in the ES6 version, classes are nothing but syntactic sugars for constructor functions. They provide a new way of declaring constructor functions in javascript. Unlike functions, classes are not hoisted. A class cannot be used before it is declared. A class can inherit properties and methods from other classes by using the extend keyword. &hellip; <a href=\"http:\/\/phpcodez.com\/classes-javascript\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Classes Javascript<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[93,213,260,370],"class_list":["post-8299","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-classes","tag-functions","tag-javascript","tag-php"],"_links":{"self":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/comments?post=8299"}],"version-history":[{"count":1,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8299\/revisions"}],"predecessor-version":[{"id":8300,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8299\/revisions\/8300"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=8299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=8299"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=8299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}