Answers for "recorrer letra por letra js"

0

recorrer letra por letra js

function validarString (cadenaAnalizar) {
   for (var i = 0; i< cadenaAnalizar.length; i++) {
         var caracter = cadenaAnalizar.charAt(i);
         if( caracter == "ñ" || caracter == "Ñ") {
            alert("Caracter no permitido");
             return false;
          }  else {
             return true;
          }
    }
}
Posted by: Guest on February-16-2021

Code answers related to "recorrer letra por letra js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language