SyntaxFix
Write A Post
Hire A Developer
Questions
How about using ASCII codes?
let n = str.charCodeAt(0); let strStartsWithALetter = (n >= 65 && n < 91) || (n >= 97 && n < 123);