Set JavaScript variable = null, or leave undefined? -
when declaring variables @ top of javascript function, best practice set them equal null, or leave 'undefined'? way ask, circumstances call each option below?
option a:
var = null, b = null;
option b:
var a, b;
i declare them undefined when don't assign value because undefined after all.
Comments
Post a Comment