r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

Show parent comments

1

u/jbonesinthecloset May 08 '21

Based on the comments for this entire post, it’s clear to pretty much everyone except you and your juniors

1

u/delventhalz May 08 '21

Cool. Thanks for the friendly discussion.

1

u/jbonesinthecloset May 08 '21

It is a friendly discussion. Sorry if my last comment sounded like I was just being a dick. I am genuinely curious why one would think the array is not clear. It’s there to hold values to check against. What else could it be there for? How is it an abstract interpretation that would leave someone to question why there is an array there?