A

Admin • 833K Points
Coach

Q. Which built-in method parses a string to an integer?

  • (A) parseInt()
  • (B) parseFloat()
  • (C) Number()
  • (D) toInteger()
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

parseInt() converts a string to an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.