This commit is contained in:
user 2024-11-22 14:02:20 +01:00
commit f6b3e0c828
3 changed files with 22 additions and 0 deletions

12
get.js Normal file
View File

@ -0,0 +1,12 @@
fetch('sample.json')
.then(response => response.json())
.then(data => {
console.log(data);
return response.json();
});

9
index.html Normal file
View File

@ -0,0 +1,9 @@
<body>
<h1>Siema</h1>
<script src="get.js"></script>
</body>

1
sample.json Normal file
View File

@ -0,0 +1 @@
{ "stadion": "cos", "name": "rzodkiew" }