![Alligator.io 🐊 on Twitter: "🤖 Optimizing the switch Statement in # JavaScript → https://t.co/hvA2I0Hbg7 by @wle8300 Did you know you can combine multiple cases together to execute the same block of code? https://t.co/nG2gtcfTtn" / Alligator.io 🐊 on Twitter: "🤖 Optimizing the switch Statement in # JavaScript → https://t.co/hvA2I0Hbg7 by @wle8300 Did you know you can combine multiple cases together to execute the same block of code? https://t.co/nG2gtcfTtn" /](https://pbs.twimg.com/media/D9b4_tUWkAMoFOz.jpg:large)
Alligator.io 🐊 on Twitter: "🤖 Optimizing the switch Statement in # JavaScript → https://t.co/hvA2I0Hbg7 by @wle8300 Did you know you can combine multiple cases together to execute the same block of code? https://t.co/nG2gtcfTtn" /
![Basic JavaScript: Multiple Identical Options in Switch Statements · Issue #40032 · freeCodeCamp/freeCodeCamp · GitHub Basic JavaScript: Multiple Identical Options in Switch Statements · Issue #40032 · freeCodeCamp/freeCodeCamp · GitHub](https://user-images.githubusercontent.com/16948721/96452758-1e613b80-11df-11eb-9c8c-8627a9160b1b.png)
Basic JavaScript: Multiple Identical Options in Switch Statements · Issue #40032 · freeCodeCamp/freeCodeCamp · GitHub
![Here's Why It is Not a Good Idea to Use Switch in JavaScript | By Somnath Singh | JavaScript in Plain English Here's Why It is Not a Good Idea to Use Switch in JavaScript | By Somnath Singh | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:1400/1*h773JJbmH8i64HoKDH3IEw.png)