Me gustaría saber si es posible obtener el nombre del objeto 1 y el objeto 2 sin especificar 'objeto 1' y 'objeto 2'.
let tableauObj = [ objet1: {name: Albert}, objet2: {name: Florence}]Puede hacer referencia a objetos en una matriz por su índice dentro de la matriz. Haga clic en estos enlaces para obtener más información sobre objetos y matrices en JavaScript.
let tableauObj = [ {name: "Albert"}, {name: "Florence"}]; // The object with the name property of "Albert" // is at index zero of the tableauObj array: console.log(tableauObj[0].name); // The object with the name property of "Florence" // is at index one of the tableauObj array: console.log(tableauObj[1].name);