Files
utd-singularity/public/script.js
T
Glitch (hello-express) a5ce448918 🕰👞 Checkpoint
./public/script.js:617503/4050
./server.js:617503/359
2020-10-23 19:58:27 +00:00

12 lines
294 B
JavaScript

// client-side js, loaded by index.html
// run by the browser each time the page is loaded
console.log("hello world :o");
// fetch the initial list of dreams
fetch("/api/flavors")
.then(response => response.json()) // parse the JSON from the server
.then(dreams => {
return [];
});