{"id":3028,"date":"2014-06-10T18:34:41","date_gmt":"2014-06-10T18:34:41","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=3028"},"modified":"2014-06-24T20:56:35","modified_gmt":"2014-06-24T20:56:35","slug":"javascript-functions-as-first-class-objects","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/javascript-functions-as-first-class-objects\/","title":{"rendered":"JavaScript Functions are First-class Objects"},"content":{"rendered":"<p><strong>This means<\/strong> that javascript <strong>functions are just a special type of object that can do all the things that regular objects can do<\/strong>. \u00a0Just like any other variable&#8230;<\/p>\n<ul>\n<li>A function is an instance of the Object type<\/li>\n<li>A function can have properties and has a link back to its constructor method<\/li>\n<li>You can store the function in a variable<\/li>\n<li>You can pass the function as a parameter to another function<\/li>\n<li>You can return the function from a function<\/li>\n<\/ul>\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/705173\/what-is-meant-by-first-class-object\" target=\"_blank\">StackOverflow<\/a><\/li>\n<li><a href=\"http:\/\/helephant.com\/2008\/08\/19\/functions-are-first-class-objects-in-javascript\/\" target=\"_blank\">Helephant.com<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This means that javascript functions are just a special type of object that can do all the things that regular objects can do. \u00a0Just like any other variable&#8230; A function is an instance of the Object type A function can have properties and has a link back to its constructor method You can store the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[9],"class_list":["post-3028","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-javascript"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=3028"}],"version-history":[{"count":8,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3028\/revisions"}],"predecessor-version":[{"id":3330,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3028\/revisions\/3330"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=3028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=3028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=3028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}