#fetch
Read more stories on Hashnode
Articles with this tag
If the txt filename is test.txt fetch("test.txt").then(function(response){return response.text();}).then(function(text){console.log(text);}); Run it...