Periksa Presense of NMBER di string JavaScript

function hasNumber(myString) {
  return /\d/.test(myString);
}
Crowded Cat