I tried doing this:
var1, var2, var3 = {}
and only the last var was an object, is i posible to create multiple empty objects or arrays without doing
var all = {}, used = {}, unused = {};
?
What you wrote is similar to :
var1;
var2;
var3 = {};
What you need is :
var1 = var2 = var3 = {};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With