js get file content from url
snippet in javascript

js get file content from url

user8793

// create a variable called content containing the content from https://URL/file
fetch("https://URL/file").then((r)=>{r.text().then((d)=>{let CONTENT = d})})