I am wondering if there is some difference in performance between javascript’s regular parameters
call(var1, var2);
and jQuery style:
call({var1: '1', var2: '2'});
I am using the both depenging on current situation.
Maybe there is some standard?
Thank you
IMO, It all depends on what your scenario is. If you have
var1, var2, ... varNyou would obviously either use array or JSON. I do not think there is any issue with the performance.If I have only one parameter in my function, Why would i want to use json (creation of json might use some resource).