Created
July 20, 2022 13:21
-
-
Save kurt-liao/e2c739a0fbe5a2199c4612a0a4211b36 to your computer and use it in GitHub Desktop.
This file contains 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
// usage.mjs | |
import promise, { output } from "./awaiting.mjs"; | |
export function outputPlusValue(value) { return output + value } | |
promise.then(() => { | |
console.log(outputPlusValue(100)); | |
setTimeout(() => console.log(outputPlusValue(100), 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment