From f250c063313468cf4d2291c38bb1f86fed75d1ef Mon Sep 17 00:00:00 2001 From: Melissa Date: Mon, 22 Jun 2026 15:42:37 +0200 Subject: [PATCH] added flotte.js and linked it to contact.html but doesnt work --- flotte.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 flotte.js diff --git a/flotte.js b/flotte.js new file mode 100644 index 0000000..2649ced --- /dev/null +++ b/flotte.js @@ -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();