{"id":184,"date":"2016-04-27T14:02:22","date_gmt":"2016-04-27T14:02:22","guid":{"rendered":"http:\/\/muthu.co\/?p=184"},"modified":"2021-01-02T14:06:02","modified_gmt":"2021-01-02T14:06:02","slug":"different-ways-of-creating-an-object-in-javascript","status":"publish","type":"post","link":"http:\/\/write.muthu.co\/different-ways-of-creating-an-object-in-javascript\/","title":{"rendered":"Different ways of creating an object in Javascript"},"content":{"rendered":"

<\/h2>\n
\/\/1. using curly braces\r\nvar myVar = {};\r\n\r\n\/\/2. using new operator\r\nvar myVar = new Object();\r\n\r\n\/\/3. using the Object.create method\r\nvar myVar = Object.create(Object.prototype);<\/pre>\n

<\/h2>\n","protected":false},"excerpt":{"rendered":"

\/\/1. using curly braces var myVar = {}; \/\/2. using new operator var myVar = new Object(); \/\/3. using the Object.create method var myVar = Object.create(Object.prototype);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[52],"_links":{"self":[{"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/posts\/184"}],"collection":[{"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":1,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":1656,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/posts\/184\/revisions\/1656"}],"wp:attachment":[{"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/write.muthu.co\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}