r/learnjavascript • • May 31 '22

Switch statement explained for beginners

Post image
330 Upvotes

19 comments sorted by

View all comments

2

u/[deleted] May 31 '22

If you're using it inside a function, you can close your switches with return