Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if word has accented or unaccented javascript

var accentArray = ["á","à","ã","â","é","è","ê","í","ì","î","õ","ó","ò","ô","ú","ù","û"]
var stringToCheck = "áeiou"

for(var i=0; i < stringToCheck.length; i++){
    for(var j=0; j < accentArray.length; j++){
        if(stringToCheck[i] === accentArray[j]){
            alert("String has accents!");
        }
    }
}
 
PREVIOUS NEXT
Tagged: #check #word #accented #unaccented #javascript
ADD COMMENT
Topic
Name
9+9 =