Convert math expression string to number
I have some simple variables whose values are numeric strings: var s = '10*10*10', v = '60*10'; I want to turn s into 1000 and v to 600.
0 upvotes
View original discussion ↗
I have some simple variables whose values are numeric strings: var s = '10*10*10', v = '60*10'; I want to turn s into 1000 and v to 600.
Comments
Sign in or sign up to comment and upvote.
No comments yet.