mercredi 31 décembre 2014

In early versions of JavaScript, what was the reasoning behind having the context default to the global object? [on hold]


In early versions of JavaScript, what was the rationale behind having the context default to the global object?



function a() {
console.log(this); //window
}




Aucun commentaire:

Enregistrer un commentaire