how to check if a string has only alphabets in javascript
snippet in javascript

how to check if a string has only alphabets in javascript

user8424

if (!/[^a-zA-Z]/.test(word))