file_get_contents в JavaScript
// You can use Fetch to get data.
fetch('http://example.com') // url here
.then((response) => {
return response.json(); // replace .json() to .text() for plain text
})
.then((daat) => {
console.log(daat);
});
Undefined