fixed small bugs, added a table to show the flotte

This commit is contained in:
2026-06-22 16:40:20 +02:00
parent fe90e2d766
commit 608cceec18
3 changed files with 46 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
async function chargerFlotte() {
const reponse = await fetch("./vehicules.json"); // on demande le fichier
const reponse = await fetch("../vehicules.json"); // on demande le fichier
const vehicules = await reponse.json(); // on le transforme en tableau JS
console.log(vehicules); // pour vérifier
}