diff --git a/web/game.js b/web/game.js index 4dd03b5..3aa7f02 100644 --- a/web/game.js +++ b/web/game.js @@ -687,5 +687,9 @@ function sendData(naam, score) { } function getData(){ + //haalt data op van de database en plaatst die in een array en print het uit in de console + fetch ('https://oege.ie.hva.nl/~hossan/getData.php') + .then(response => response.json()) + .then(data=>{ console.log(data); }) +} -} \ No newline at end of file