Bolded text printed, because reject called after resolve, but promise must be ignore change state at second call.
And what about async\await?
Search Options
Types to Display
Espruino
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I try use promise, but it's work strange:
output:
Bolded text printed, because reject called after resolve, but promise must be ignore change state at second call.
And what about async\await?