15 lines
205 B
JavaScript
15 lines
205 B
JavaScript
|
async function main() {
|
||
|
var cpuList;
|
||
|
await fetch('./data.json')
|
||
|
.then((response) => response.json())
|
||
|
.then((json) => cpuList = json);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
function getRandomCpu() {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
main();
|