Fetch API lets you make HTTP requests (AJAX) easily to load data dynamically without reloading the page.
Output will appear here...
Output will appear here...
fetch(url)
to get data. It returns a Promise
.response.json()
to parse JSON response.method
, headers
, and body
..catch()
or try-catch in async/await.