Making 5 variables from a loop

I want to make a number of cubes based on the variable ‘likeNumber’. But I want them all to be different objects? How do I do this?
Here is the basic loop:

for (i = 0; i < likeNumber; i++){ 

var base = Instantiate (cube, position, Quaternion.identity);


But this code only creates ‘var base’, when I want to create different vars for different objects. Can this be achieved with a loop or must something else be done?

Use an an array (of GameObjects, presumably, but it can also be Transform or whatever). Although every object you create is a separate object anyway. You don’t need to assign Instantiate to a variable, unless you intend to refer directly to that instantiated object later.