Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch get data async

async function fetchMovies() {
  const response = await fetch('/movies');
  // waits until the request completes...
  console.log(response);
}
Source by dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #fetch #data #async
ADD COMMENT
Topic
Name
3+4 =