DEV Community


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

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.

coderslang profile image
Coderslang: Become a Software Engineer Author

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