Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Como puedó resolver esté problema ? : Al menos un carácter numérico permitido sin expresiones regulares
if(password.search(/[0-9]/)){ document.getElementById('fpasswords').innerHTML="*atleast one numeric character"; return false; }

aquí usé expresiones regulares pero no quiero usarlas, ¿cuál es la solución?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede verificar cada carácter con la función isNaN, esta función devuelve falso si es un carácter numérico y verdadero si no lo es:

 const str = 'Papayas1'; for (var i = 0; i < str.length; i++) { if(!isNaN(str.charAt(i))) console.log('this is a number') else console.log('this is not a number') }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!