fetch json data

This commit is contained in:
Florian Schmid 2023-04-11 12:15:56 +02:00
parent 13091398ae
commit 58b0686b44

15
game.js Normal file
View File

@ -0,0 +1,15 @@
async function main() {
var cpuList;
await fetch('./data.json')
.then((response) => response.json())
.then((json) => cpuList = json);
}
function getRandomCpu() {
}
main();