Adds fetch demo.
This commit is contained in:
7
demos/js/src/demo_fetch.js
Normal file
7
demos/js/src/demo_fetch.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const fetch = require("node-fetch");
|
||||
|
||||
fetch("https://jsonplaceholder.typicode.com/users")
|
||||
.then((response) => response.json())
|
||||
.then((json) => {
|
||||
debugger;
|
||||
});
|
||||
Reference in New Issue
Block a user