Open surfmuggle opened 4 years ago
fetch is a function to make HTTP requests
fetch("example/data.txt") .then(resp => resp.text()) .then(text => console.log(text)); // → This is the content of data.txt
fetch is a function to make HTTP requests