Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

async await in javascript

 const showPosts = async () => {
 const response = await fetch('https://jsonplaceholder.typicode.com/posts');
 const posts = await response.json();
 console.log(posts);
}

showPosts();
Source by www.theodinproject.com #
 
PREVIOUS NEXT
Tagged: #async #await #javascript
ADD COMMENT
Topic
Name
9+6 =