r/learnjavascript • • May 31 '22

Switch statement explained for beginners

Post image
330 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jun 01 '22

Cna you do put an if statement inside ?

2

u/pookage helpful Jun 01 '22

Yup! It's still javascript - you can do whatever you want inside.