variable / function can't be deleted❗️
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
Last updated 2 years ago