JS code for phone number field validation

I need a JS custom code to verify and limit the phone field. The code must have:

  • A country code prefix no erasable
  • A minimum and maximun number of digits.
  • Block no numeric characters
  • Error message when number is invalid

Thanks in advance.