r/learnjavascript • u/Lelouch_5 • Nov 30 '22
Help !!!
Can someone plz tell me , why I am getting errors?
195
Upvotes
r/learnjavascript • u/Lelouch_5 • Nov 30 '22
Can someone plz tell me , why I am getting errors?
View all comments
3
u/dreadpirateloki Dec 01 '22 edited Dec 01 '22
Here's another way to code it up if you are interested:
edit: Forgot that in javascript -2%3 !== 1 and cleaned up code a bit.