Answer the question
In order to leave comments, you need to log in
How to get the sign from a variable?
https://jsfiddle.net/vve3egdy/
the calculate(str) call takes a string like "1 + 2" with a hard-coded "NUM operation NUMBER" format (one space around the operation) and returns the result. How can I get the sign that is stored in the sign property?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question