DEV Community

Discussion on: Understanding Switch Statement In Javascript

Collapse
 
amn3s1a2018 profile image
Amn3s1a2018

It would be nice, to talk about the switch(true) pattern, which is useful for some more complex conditions, but can become a wrong tool if not used wisely.

Collapse
 
ayabouchiha profile image
Aya Bouchiha

I totally agree with you, thank you for the comment 😊🙏