showing results for - "how set type of string value to number in js"
Gracelyn
11 Feb 2019
1var text = '42px';
2var integer = parseInt(text, 10);
3// returns 42
similar questions