on-internet
← Community

How would I compare a number to a range of numbers in Javascript?

Stack Overflow ·

I want to compare a range of numbers against a single number, basically like this in simple terms: if X through Y equals Z, then do {} What would be the proper way to do something like that in Javascript? CLARIFICATION I want to check if any number between X and Y is equal to Z

Comments

Sign in or sign up to comment and upvote.

No comments yet.