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

253
Views
Number.isInteger() - no funciona en la función pow

creé una función que funciona como una función pow y la usé en Number.isInteger() para no aceptar números que no sean enteros, y los métodos isInteger no funcionan. ¿cuál es el problema? Gracias...

 "use strict"; function pow(x, n) { let result = x; for (let i = 1; i < n; i++) { result *= x; } return result; } let x = prompt("x?", "") let n = prompt("n?", "") if (n < 2 || (Number.isInteger(n) === false)) { alert(`Power ${n} is not supported, use a positive integer`); } else { alert(pow(x, n)); }

about 4 years ago · Juan Pablo Isaza
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!