mirror of
https://github.com/xfarrow/javascript-tutorials.git
synced 2025-04-16 11:29:41 +02:00
change to readme.md
This commit is contained in:
parent
892259ba1e
commit
751c6919fe
@ -24,7 +24,6 @@ const promise = new Promise(function (resolve, reject) {
|
|||||||
/*
|
/*
|
||||||
The first argument of .then is a function that runs when the promise is resolved and receives the result.
|
The first argument of .then is a function that runs when the promise is resolved and receives the result.
|
||||||
The second argument of .then is a function that runs when the promise is rejected and receives the error.
|
The second argument of .then is a function that runs when the promise is rejected and receives the error.
|
||||||
The function passed to "then()" is put in the Event Loop queue.
|
|
||||||
*/
|
*/
|
||||||
promise.then(
|
promise.then(
|
||||||
result => console.log('The operation was successful. It returned ' + result),
|
result => console.log('The operation was successful. It returned ' + result),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user