A

Admin • 828.03K Points
Coach

Q. How do you convert a number to a string in JavaScript?

  • (A) num.toString()
  • (B) String(num)
  • (C) num + ''
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 12
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
All listed methods are valid ways to convert a number to a string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.