variable / function can't be deleted❗️
Last updated 2 years ago
Was this helpful?
JS ⟩ variable ⟩ variable / function can't be deleted
Q:Can we delete a variable
A:No
sloppy mode:deletion fails silently.
strict mode: SyntaxError.
delete - delete an object's property.
delete of an unqualified identifier in strict mode❗️
How can I unset a JavaScript variable?
delete operator