Fetch API
The Fetch API is used to make HTTP requests from JavaScript.
It is commonly used to communicate with web APIs.
Example
fetch("https://example.com")
.then(response => response.text())
.then(data => console.log(data));
Fetch returns a Promise.