[jQuery] Create array based on input value

[jQuery] Create array based on input value


I am wondering if it is possible to create an array, but the number of
array items would depend on the number value in an input box.
So, if the user entered 5, it would create:
var arr = new Array(6);
arr[0] = "Jani";
arr[1] = "Hege";
arr[2] = "Stale";
arr[3] = "Kai Jim";
arr[4] = "Borge";
arr[5] = "Tove";
I am having a hard time understanding how I would do this with jQuery.