Javascript Check Range

Check number falls in range

if ((value - lower) * (value - upper) < 0) console.log('Value is in range');
else console.warn('Value is out of range');