how to convert string into integer in typescript code example
Example 1: string to int typescript
Number('123') //123
Number('xxx') //NaN
Example 2: typescript string to number
var x = "32";
var y: number = +x;//the "+" converts string to number