web-maker icon indicating copy to clipboard operation
web-maker copied to clipboard

Undeclared variables are allowed

Open KokoDoko opened this issue 7 years ago • 1 comments

Webmaker allows javascript code with undeclared variables:

a = "boink"
console.log(a)

This logs "boink" but I would expect

ReferenceError: a is not defined

KokoDoko avatar Mar 05 '18 17:03 KokoDoko

@KokoDoko That code seems to be working the same way on a normal page too in Chrome.

chinchang avatar Mar 11 '18 10:03 chinchang