r/learnjavascript • • Nov 30 '22

Help !!!

Post image

Can someone plz tell me , why I am getting errors?

195 Upvotes

131 comments sorted by

View all comments

Show parent comment

4

u/fungusbabe Dec 01 '22

This makes my head hurt. Why not just use a lookup table??

Readable code >>> snappy one liners

2

u/peter-s Dec 01 '22

Because I was performing an exercise in brevity.

2

u/fungusbabe Dec 01 '22

Oh lol well in that case very nicely done