javascript function to check if the word has a digit in it code example
Example: check if a string contains digits js
function hasNumber(myString) {
return /\d/.test(myString);
}
function hasNumber(myString) {
return /\d/.test(myString);
}