5 lines
138 B
JavaScript
5 lines
138 B
JavaScript
fetch('http://rosettacode.org').then(function(response) {
|
|
return response.text();
|
|
}).then(function(myText) {
|
|
console.log(myText);
|
|
});
|