{"id":417,"date":"2017-08-03T12:13:08","date_gmt":"2017-08-03T10:13:08","guid":{"rendered":"http:\/\/webposible.com\/xposible\/?p=417"},"modified":"2020-01-28T18:15:18","modified_gmt":"2020-01-28T16:15:18","slug":"el-objeto-this-en-ecmascript","status":"publish","type":"post","link":"http:\/\/webposible.com\/xposible\/2017\/el-objeto-this-en-ecmascript\/","title":{"rendered":"El objeto this en ECMAScript"},"content":{"rendered":"<p>Uno de los grandes misterios de\u00a0ECMAScript desvelado \ud83d\ude42<\/p>\n<blockquote lang=\"en\" cite=\"https:\/\/github.com\/getify\/You-Dont-Know-JS\/blob\/master\/this%20%26%20object%20prototypes\/ch1.md\"><p>We said earlier that <code>this<\/code> is not an author-time binding but a runtime binding. It is contextual based on the conditions of the function&#8217;s invocation. <code>this<\/code> binding has nothing to do with where a function is declared, but has instead everything to do with the manner in which the function is called.<\/p>\n<p>When a function is invoked, an activation record, otherwise known as an execution context, is created. This record contains information about where the function was called from (the call-stack), how the function was invoked, what parameters were passed, etc. One of the properties of this record is the <code>this<\/code> reference which will be used for the duration of that function&#8217;s execution.<\/p><\/blockquote>\n<p lang=\"en\"><cite>You Don&#8217;t Know JS: this &amp; Object Prototypes \u2014 Leslie Zhang<\/cite><\/p>\n<p>Y qu\u00e9 decir de los libros de la serie <a lang=\"en\" href=\"https:\/\/github.com\/getify\/You-Dont-Know-JS\" hreflang=\"en\">You don&#8217;t know JS<\/a>: muy recomendables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uno de los grandes misterios de\u00a0ECMAScript desvelado \ud83d\ude42 We said earlier that this is not an author-time binding but a runtime binding. It is contextual based on the conditions of the function&#8217;s invocation. this binding has nothing to do with where a function is declared, but has instead everything to do with the manner in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,69],"tags":[],"_links":{"self":[{"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/posts\/417"}],"collection":[{"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":4,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/posts\/417\/revisions"}],"predecessor-version":[{"id":676,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/posts\/417\/revisions\/676"}],"wp:attachment":[{"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/categories?post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/webposible.com\/xposible\/wp-json\/wp\/v2\/tags?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}