how set type of string value to number in js code example
Example: how set type of string value to number in js
var text = '42px';
var integer = parseInt(text, 10);
// returns 42
var text = '42px';
var integer = parseInt(text, 10);
// returns 42