string to integer typscript code example Example: string to int typescript Number('123') //123 Number('xxx') //NaN