From f6b3e0c8280b226dca34590d136750574cc2c300 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 22 Nov 2024 14:02:20 +0100 Subject: [PATCH] get --- get.js | 12 ++++++++++++ index.html | 9 +++++++++ sample.json | 1 + 3 files changed, 22 insertions(+) create mode 100644 get.js create mode 100644 index.html create mode 100644 sample.json 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" }