DEV Community

Discussion on: Writing If Statements with the Ternary Operator

Collapse
 
valentinaperic profile image
Valentina Peric

ME TOO! They are helpful - thank you! 🙂

& I agree - not everything has to be one-liner. During a code review, I had feedback that my one-liner was long because I got carried away with the refactor 😂 (I was using a ternary operand!). Sometimes simplifying code can reduce readability. This is a great reminder, Brittney! Thank you.

Refactoring vanilla JavaScript to be more ES6 compatible - that would be a fun series. I love the idea. I would also be interested in seeing the comparison once an entire project is completely refactored!