parseInt() function returns Nan( not a number) when the string doesn’t contain number.
It accepts string as a value and converts it to specified radix system and returns an integer.
Program to convert string to integer:
Integer value is100 Integer value is 3
ParseInt() function converts number which is present in any base to base 10. It parses string and converts until it faces a string literal and stops parsing.
Integer value is 11 integer value is 156 528