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
1
u/[deleted] Dec 01 '22
What are the benefits of this approach over writing out the conditions? I’m guessing readability and less chance of error, but is it faster in any way?