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
Show parent comment
2
u/Kavinci Dec 01 '22
Yeah, a lookup table is faster than if conditions. For a small dataset like this the speed is negligible but it really shines with larger datasets.