Checks if a string contains only alphabetic characters (A–Z, a–z).
The string to check.
true
false
isAlphabetic("Hello"); // trueisAlphabetic("world123"); // falseisAlphabetic("Test!"); // false Copy
isAlphabetic("Hello"); // trueisAlphabetic("world123"); // falseisAlphabetic("Test!"); // false
Checks if a string contains only alphabetic characters (A–Z, a–z).