Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

promise

<script>
    var promise = Promise.resolve(17468);
 
promise.then(function(val) {
    console.log(val);
});
//Output: 17468
</script>
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #promise
ADD COMMENT
Topic
Name
7+5 =