DEV Community

Discussion on: Can you hack this? #2

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

Can anyone solve it without converting into a number?

Collapse
 
ironcladdev profile image
Conner Ow

I don't know if that's possible. I mean, using the parseInt function could work if someone inputs a string.

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

A Little help, you can use a regexp