Consider the following code snippet :
var string2Num=parseInt("123xyz");
The result for the above code snippet would be :
var string2Num=parseInt("123xyz");
A. 123
B. 123xyz
C. Exception
D. NaN
Answer: Option B

what is the output of parseInt(123xy); ?