parseInt

parseIntparseInt(string)
Returns the given string as an integer number, or NaN if not possible.