function foo(){ console.log(this.a) } var a = 2; foo(); // returns undefined
this snippet code doesn't print or return 2. what should I do ?!
No comments:
Post a Comment