How to convert string equation to number in javascript?
Say I have \"100*100\" or \"100x100\" how do I evaluate that and convert to a number?
use parseInt() ,The parseInt() function parses a string and returns an integer.
parseInt("100")*parseInt("100") //10000