on-internet
← Community

Convert math expression string to number

Stack Overflow ·

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.