I would like to know if it's possible to get the name of the objet1 & objet2 without specifying 'objet1' & 'objet2'?
let tableauObj = [
objet1: {name: Albert},
objet2: {name: Florence}]
You can refer to objects in an array by their index within the array. Click these links to learn more about objects and arrays in 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);