This is the first code segment. It forms a string for the object initializer of the row. I explained this code in the previous part; I will not explain it again.
The next code segment is:
//form the rows
//form evaluation string
evalStr = "this[i] = " + rowStr + ";";
This code segment forms the row properties of the object type (constructor function). Again, I explained this code in the previous part, and I will not explain it again.
The Height Property
The code segment that gives the height of the array is:
//The Array Object Type Properties
//the height property
this.height = y;
Giving the height of the array is simple. During construction of an array object, the y parameter is the number of rows, which we call the height. So we declare the word "height" here as a property of the object type with the expression, “this.height”; y is assigned to this property.