What’s best…
create variables like this:
var one = 1;
var two = 2;
var three = 3;
or like this:
var myStuff = {}
myStuff.one = 1;
myStuff.two = 2;
myStuff.three = 3;
I’ve seen both ways and don’t understand what the main difference is. Can anyone clarify for me please.
With the first…
With the second…