How do I create an array of cubes?

Hello I am woundering how would I create a plane of cubes using an array like a grid of 100x100 cubes?

Found the answer:

var prefab : GameObject;
var x = 100;
var z = 100;

function Start () {
	for (i = 0; i < x; i++) {
		for (j = 0; j < z; j++) {
		   Instantiate(prefab, Vector3(i, 0, j), Quaternion.identity);
		}
	}
}