diff --git a/script.js b/script.js index 071243f..270f6fb 100644 --- a/script.js +++ b/script.js @@ -29,3 +29,16 @@ function animate() { animate(); +async function doLoad() { + let request = new Request('data.json'); + fetch(request) + .then(response => { + return response.json() + }) + .then(json => { + console.log(json) + }) +} + +doLoad(); +