if one number is between 2 other numbers javascript code example Example: if between two numbers javascript if (500 < thenumber && thenumber < 600) { // ... }