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

675
Views
How can I get 'return True' by exponent in JavaScript?

First, I'm sorry I can't speak English well.

I have some problems studying JS. I want to return true if the string is a Number.

If string is "0x10", "0b10", "9843" it work well (all return true). And string like "a463" return false well.

But, when the string is a string with an exponent like "1e43"... it doesn't work well. (it's return false) I want to return true when string with exponent.

if (isNaN(s - 0)) {
  return false;
} else {
  return true;
}

I think have a problem with if().

So, How can I get return true, when the string is with exponent, like "1e22", "13e7"?

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!