• +91 9723535972
  • info@interviewmaterial.com

Java Script Interview Questions and Answers

Question - How to convert numbers to strings using JavaScript?

Answer - You can prepend the number with an empty string var mystring = ""+myinteger; or var mystring = myinteger.toString(); You can specify a base for the conversion, var myinteger = 14; var mystring = myinteger.toString(16); mystring will be "e".

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners