Why this behavior for javascript code? – stackoverflow.com

Recently one of my friends asked me the output of following code var length = 10; function fn() { console.log(this.length); } var obj = { length: 5, method: function(fn) { ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Why this behavior for javascript code? – stackoverflow.com"