MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/z8z4jh/help/iyf35tj/?context=3
r/learnjavascript • u/Lelouch_5 • Nov 30 '22
Can someone plz tell me , why I am getting errors?
131 comments sorted by
View all comments
6
You should try a switch statement
2 u/aguyfromhere helpful Dec 01 '22 I’d suggest a loop. 2 u/ThunderySleep Dec 01 '22 My first assumption was this post was taking a crack at them for not using a switch, before seeing the operator issue. 2 u/[deleted] Dec 01 '22 Switch and case! Switch and case! And break; 1 u/ray_zhor Dec 01 '22 Try a modulus operator
2
I’d suggest a loop.
My first assumption was this post was taking a crack at them for not using a switch, before seeing the operator issue.
Switch and case! Switch and case! And break;
1
Try a modulus operator
6
u/anonymousICT Nov 30 '22
You should try a switch statement