A

Admin • 833.24K Points
Coach

Q. Which method is used to convert a number to a string?

  • (A) toString()
  • (B) parseInt()
  • (C) String()
  • (D) Both toString() and String()
  • Correct Answer - Option(D)
  • Views: 19
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

Both toString() and String() can convert numbers to strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.