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/
July 8th 19 at 15:56
1 answer
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

Find more questions by tags JavaScript