Yes, that's right. I guess that what I'm trying to understand is more along the lines of why is it bad for your code to have a variable set as undefined? (ie, what sorts of problems does it cause?) and how does setting it to null instead fix or improve it?
Yes, that's right. I guess that what I'm trying to understand is more along the lines of why is it bad for your code to have a variable set as
undefined? (ie, what sorts of problems does it cause?) and how does setting it tonullinstead fix or improve it?I don't think using
nullwill fix or improve anything, it's just a good practice to follow.