How to release variables declared by const

sometimes to prevent memory leaks
sets the variable referencing dom to null
if this variable is declared with const, the

cannot be released manually because const cannot repeatedly assign
such a variable.
Mar.10,2021

can be automatically released as usual, although it cannot be set to null . If you can use const , use const .

Menu