- 
					 Consider the following code snippet :
var string2Number=parseInt("456pqr"); 
- 
                        
- 456pqr
 - Exception
 - NaN
 - 456
 - None of these
 
 
Correct Option: D
The parseInt() function parses a string and returns an integer. The function returns the first integer contained in the string or 0 if the string does not begin with an integer.