Taking the following code snippet as an example:
//variable a,b and c will hold Constructors later
var a = null;
var b = null;
var c;
function setup() {
//assign those Constructors to variable a,b and c
a = new ControlsAndInput();
b = new p5.FFT();
c = new myOwnConstructor();
}
I noticed some people like to declare and assign the null value to a global variable which will be used later.
The question is: what's the differences between assigning a null value and not assigning a null value to a variable before using it? Is there any difference between var a,b and c in above example, such that unlike a and b, c was not assigned a null value at the start, could this cause any potential bug, why I need to assign null to a variable before using it sometimes