❗sloppy mode
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
JS ⟩ concepts ⟩ environment ⟩ JS engine ⟩ mode ⟩ sloppy
🈯 synonyms: "non-strict mode", "sloppy mode"
👉 compare: strict mode
in sloppy mode:
although scopes are determined at compile-time, you can modify the scope at runtime❗ ( 👉 ❗)
is / initialized to (outside the )❗
to will result in
JS is lenient with , strict with .
, even in ❗
with a
: ✅ / initialized to (in outer )
strict mode: ⛔ ReferenceError (invisible in outer scope)❗