how to check if a string has only alphabets in javascript

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

Also in JavaScript: