egoist/codepan

I feel confused about the codepan running result #68

johnsoncheg posted onGitHub

codepan demo:

var a = 1;
console.log(this.a) // undefined

jsbin&codepen demo:

var a = 1
console.log(this.a) // 1

judge from the result above, I think something has gone wrong with codepan's code. I guess it may has something to do with the strict mode


Fund this Issue

$100.00
Rewarded

Rewarded pull request

Recent activities

stroncium was rewarded by egoist for egoist/codepan# 68
almost 6 years ago
stroncium submitted an output to  egoist/ codepan# 68
almost 6 years ago