how to check if a string contains even 1 alphabet javascript code code example Example: how to check if a string has only alphabets in javascript if (!/[^a-zA-Z]/.test(word))