Using switch(true) in JavaScript. Not long ago, some of my teammates… | by David Barral | Trabe | Medium
![Joel Thoms on Twitter: "🤔 Not sure why there's so much fear around the ternary operator. They don't appear to be much different than a switch or if. There are more similarities Joel Thoms on Twitter: "🤔 Not sure why there's so much fear around the ternary operator. They don't appear to be much different than a switch or if. There are more similarities](https://pbs.twimg.com/media/EIN44EwWwAAQMvw.png)
Joel Thoms on Twitter: "🤔 Not sure why there's so much fear around the ternary operator. They don't appear to be much different than a switch or if. There are more similarities
![php - How to get the switch toggle switch current state(true/false) onload in Javascript - Stack Overflow php - How to get the switch toggle switch current state(true/false) onload in Javascript - Stack Overflow](https://i.stack.imgur.com/yCgLj.jpg)
php - How to get the switch toggle switch current state(true/false) onload in Javascript - Stack Overflow
![✨ Josh Branchaud 🎄 on Twitter: "JavaScript friends, I want to push some logic into a switch stmt to make it quick to read/understand how a display value is determined. Unlike other ✨ Josh Branchaud 🎄 on Twitter: "JavaScript friends, I want to push some logic into a switch stmt to make it quick to read/understand how a display value is determined. Unlike other](https://pbs.twimg.com/media/ELsnjMQWkAcZnLn.jpg:large)