JavaScript
Feb 9, 2017 · Frontend Development
Why Can’t You Delete var‑Declared Globals in JavaScript?
JavaScript global variables can be created either explicitly with var or implicitly without it, but only the implicit globals are deletable; this article explains the underlying property descriptor differences, demonstrates delete behavior, and shows how to modify configurability using Object.defineProperty.
JavaScriptdelete operatorglobal variables
0 likes · 3 min read