added flotte.js and linked it to contact.html but doesnt work

This commit is contained in:
2026-06-22 15:42:37 +02:00
parent 14286db2e0
commit f250c06331
+7
View File
@@ -0,0 +1,7 @@
async function chargerFlotte() {
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
}
chargerFlotte();