I have this code:
function boo() {
this.is_global = "Yes!";
}
When I run the boo();
, I have is_global
in window
object, I mean the is_global
goes into global context.
I expected to have is_global
in boo
function only.
Is this a normal behavior?