How to validate these conditions in javacript?
- Minimum of 3 digits,
 - Maximum of 5 digits,
 - Decimal point after the third digit
 
Correct values samples:123 , 123.1, 123.55.
Use RegExp
/^(\d{3})(\.\d{1,2})?$/.test(number+'');
\d{3}) means any digits, exactly 3 times
(\.\d{1,2})? is more complicated. It means after the three digits, there can be: A decimal, a digit 1-2 times
string and  a number
    
123.(decimal point without decimals) be accepted or rejected?