Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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;
          }
    }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: puppeteer print page numbers after second page 
Javascript :: electron pack node update 
Javascript :: whait till src img has loaded angular 
Javascript :: jsdom nodelist empty array why 
Javascript :: better way of using discord.js 
Javascript :: font awesome react share faShare 
Javascript :: discord.js create channel 
Javascript :: smmoth scroll js 
Javascript :: svlete each index 
Javascript :: devolver array con indice de diferencia ejemplos javascript 
Javascript :: node scheduler rules 
Javascript :: how to add multiple qurery in mongoose find method 
Javascript :: use recursation in iife in js 
Javascript :: how to press enter key automatically using javascript 
Javascript :: form to object function 
Javascript :: immediate invoke jquery arrow function 
Javascript :: safe check in js 
Javascript :: scripts for the backend 
Javascript :: display prety html json data 
Javascript :: jquerry shorthand for fetch 
Javascript :: add object to object dynamically 
Javascript :: 8.1.3. Varying Data Types¶ Arrays 
Javascript :: js regex replace unsafe regex 
Javascript :: js object to jspn 
Javascript :: check the constructor property to find out if an object is a Date (contains the word "Date"): 
Javascript :: regular expression 010+100 answer 
Javascript :: javascript check if string contains capital letter 
Javascript :: javascript loop Tool 
Javascript :: angular copy folder to dist 
Javascript :: iife syntax 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =