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