paint-brush
Rethinking JavaScript: Eliminate the switch statement for better codeby@joelthoms
57,497 reads
57,497 reads

Rethinking JavaScript: Eliminate the switch statement for better code

by Joel Thoms6mJanuary 12th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In my last 3 articles I convinced you to <a href="https://medium.com/p/rethinking-javascript-the-if-statement-b158a61cd6cb" target="_blank">remove the if statement</a>, <a href="https://hackernoon.com/rethinking-javascript-death-of-the-for-loop-c431564c84a8" target="_blank">kill the for loop</a>, and <a href="https://hackernoon.com/rethinking-javascript-break-is-the-goto-of-loops-51b27b1c85f8" target="_blank">never use break</a>. Now I’m going try to convince you to eliminate the switch statement.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Rethinking JavaScript: Eliminate the switch statement for better code
Joel Thoms HackerNoon profile picture
Joel Thoms

Joel Thoms

@joelthoms

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite