commit f6b3e0c8280b226dca34590d136750574cc2c300 Author: user Date: Fri Nov 22 14:02:20 2024 +0100 get diff --git a/get.js b/get.js new file mode 100644 index 0000000..15ad5e5 --- /dev/null +++ b/get.js @@ -0,0 +1,12 @@ + fetch('sample.json') + .then(response => response.json()) + .then(data => { + + console.log(data); + + return response.json(); + +}); + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..629339f --- /dev/null +++ b/index.html @@ -0,0 +1,9 @@ + + + + +

Siema

+ + + + diff --git a/sample.json b/sample.json new file mode 100644 index 0000000..7524b41 --- /dev/null +++ b/sample.json @@ -0,0 +1 @@ +{ "stadion": "cos", "name": "rzodkiew" }