DEV Community

loading...

Discussion on: How to create Promises and handle Promise chains in JavaScript

Collapse
mdchaney profile image
Michael Chaney

const hasWon = Math.random() > 0.5 ? true : false;

Great article, but please understand that the above code causes a lot of us physical pain.

Collapse
coderslang profile image
Coderslang: Become a Software Engineer Author

Ooops 🤭. Thank you for the comment, Michael. Fixed.