Q. Which function parses a string to an integer?

A
parseInt()
B
parseFloat()
C
toInteger()
D
convertInt()
Solution:

parseInt() parses a string and returns an integer.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!