Compare commits

2 Commits
2 changed files with 8 additions and 0 deletions
+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();
+1
View File
@@ -73,5 +73,6 @@
</footer>
<script src="../equipe.js"></script>
<script src="../contact.js"></script>
<script src="../flotte.js"</script>
</body>
</html>