SyntaxFix
Write A Post
Hire A Developer
Questions
fetch('http://localhost/foo.txt') .then(response => response.text()) .then((data) => { console.log(data) })
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API