DEV Community

Discussion on: Promises: Chaining, Error Handling & Operators

Collapse
 
alpersunter profile image
Alper Sünter • Edited

Hi. I liked the post. Just want to bring something to your attention. In the last example, (where you "race"d promises), the console log is Lauren, but it comes from "then" block, not from "catch" block. I tested it on JSFiddle before posting jsfiddle.net/ma26yrhj/. Nice post overall, just wanted to mention this. Have a nice day. (edit: typo)

Collapse
 
bhagatparwinder profile image
Parwinder 👨🏻‍💻

Thanks for pointing it out. Updated!