1.

What is the return type of the method parseInt()?(a) String(b) Float(c) Integer(d) DateI have been asked this question by my school principal while I was bunking the class.My question comes from Parsing Values using JavaScript topic in section Parsing, Benchmarking and Logging of JavaScript

Answer»

Correct ANSWER is (C) Integer

Explanation: The function parseInt() method PARSES a STRING and RETURNS an integer. The method parseInt() returns an integer.



Discussion

No Comment Found

Related InterviewSolutions