Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

making promises in js

getData()
    .then(data => console.log(data))
    .catch(error => console.log(error));
Source by scotch.io #
 
PREVIOUS NEXT
Tagged: #making #promises #js
ADD COMMENT
Topic
Name
4+8 =