Answers for "front javascript read text file from remote"

2

front javascript read text file from remote

// As with JSON, use the Fetch API & ES6
fetch('something.txt')
  .then(response => response.text())
  .then(data => {
  	// Do something with your data
  	console.log(data);
  });
Posted by: Guest on March-15-2020

Code answers related to "front javascript read text file from remote"

Code answers related to "Javascript"

Browse Popular Code Answers by Language