Q: Storing value as variable, then adding to array. Performance My question is about performance, specifically in Javascript (Jquery).
Let's say I  want to store the value of 100 html input boxes in an array. Is it more efficient to store each value in a variable and then add to the array like this; 
var x0 = $('#input0').val();
var x1 = $('#input1').val();
...
var x99 = $('#input99').val();

var myValues = new Array();
myValues[0] = x0;
myValues[1] = x1; 
...
myValues[99] = x99;

Or combine the steps like this?
var myValues = new Array();
myValues[0] = $('#input0').val();
myValues[1] = $('#input1').val();
...
myValues[99] = $('#input99').val();

Other things to consider besides performance?

A: Second case is more efficient in performance as compared to first one.
First case create all those 100 variable and initialize them (inputs) and then 
 assign to the array.
Second case direct initialize them (inputs) to the array.
Test: If we count one initialization as 1 cost of time, then first case is doing it in 200 cost. where second is doing 100 cost.
Help here!
