Questions
Tags
Sign In
Why the regular expression returns false?
Tell me why this regular expression returns false?
for example, in the field enter 10+5
https://jsfiddle.net/s6jLw6zj/
JavaScript
gussie.Quitzon
asked
July 8th 19 at 15:56
Related questions
1
When I hit 'enter' is added?
8
How is this blur or image and how to do it in CSS?
2
The cheapest option call transfer one number to another by pressing a when you call in the urban network?
1
How to track changes on a web page?
0
How to return the current data of the village?
1
How to do pagination in owl-carousel was the year (text)?
1
Does a SELECT * for performance, if the field is null?
3
How to make bending blocks when you hover, like here waaark.com/?
More answers about
"Why the regular expression returns false?"
1
answer
brooks.Greenfelder
answered on
July 8th 19 at 15:58
Solution
Because you
text
is a DOM element and put the string and should be cast to numbers
https://jsfiddle.net/yurzui/s6jLw6zj/1/
Thank you!
- gussie.Quitzon
commented on July 8th 19 at 16:01
Please
sign in
or
sign up
to write your answer or comment.
Find more questions by tags
JavaScript