Last active
June 15, 2017 06:31
-
-
Save hendrikswan/bac6b74cacda24157bcabb6b723abf5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var promise = Promise.resolve(new Date()); | |
promise.then((date) => console.log(date)); | |
setTimeout(() => promise.then((date) => console.log(date)), 2000); | |
// OUTPUT | |
// 2017–06–14T17:55:43.322Z | |
// 2017–06–14T17:55:43.322Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment