DEV Community

Discussion on: Ternary Operators In JavaScript

Collapse
 
iandavid profile image
David Okpare

Yes, you're absolutely right! The article wasn't meant to "replace if statements", but shed light on it being a possible option for using conditional operators :) And thanks for highlighting the fact that it shouldn't be overused. I have included it in the post