func toegevoegd data ontvangen van webserver en omzetten in array

This commit is contained in:
Sam Hos
2024-01-07 15:06:49 +01:00
parent e97a8e2bf7
commit 1a707650bd

View File

@@ -687,5 +687,9 @@ function sendData(naam, score) {
} }
function getData(){ 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); })
} }