You are calling the Array constructor with an argument that is not a whole number (whole numbers consist of zero plus the set of positive integers).
To correct this error
var piArray = new Array(3.14159);
The following example demonstrates the correct way to specify an array with a single numeric element.
var piArray = new Array(1); piArray [0] = 3.14159;
There is no upper limit for the size of an array, other than the maximum integer value (approximately 4 billion).