@SeymourPoler
window.color = “red”; //<-- general scope everything without a scope var object = { color: “blue” }; function sayColor(){ //alert(this.color); } sayColor(); //”red” without scope o.sayColor = sayColor; o.sayColor(); //”blue” inside a object/function
No hay comentarios:
Publicar un comentario