Why does the code below print "Tree", "Tree", and not "Bear", "Tree"?
var file_array = new Array(100);
var fileobject = {name: null , folder: null , url: null , modified: null};
fileobject.name = "Bear";
file_array[0] = fileobject;
fileobject.name = "Tree";
file_array[1] = fileobject;
console.log(file_array[0].name);
console.log(file_array[1].name);