A method converts the string to a number. Integer() toNumber() toInt() Int() code example
Example 1: string to int
int i=Integer.parseInt("200");
Example 2: convert a string into an integer
var text = '42px';
var integer = parseInt(text, 10);
// returns 42