Completely agree your logic.
Otis Virginie
21

Kyle is correct, of course, but my experience is that developers rarely, if ever, assign null or undefined to variables as soon as they’re no longer required. Rather, as you have pointed out, we rely on the fact that once the scope is done, the GC will properly do its job.