With an Array
I know you can use the delete
keyword to remove items out of the Array
. However, delete
will not delete a variable.
var b = "some stuff";
delete b;
console.log(b); // "some stuff"
What's the correct way to "free" the memory used by b
? Does doing just b = null;
do the trick?