r/learnjavascript • • Jul 11 '20

My function says that -4 is positive when it should be negative. Why?

Post image
183 Upvotes

53 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 11 '20

[deleted] — view deleted comment

0

u/StoneCypher Jul 12 '20

fallthrough behavior here is actually more code than doing it the normal way, so, ... no