A

Admin • 833K Points
Coach

Q. Which function is used to parse a string to an integer?

  • (A) parseInt()
  • (B) int()
  • (C) toInteger()
  • (D) Number.parse()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

parseInt() is used to convert a string to an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.