How to convert Number to String in JavaScript?

HTMLJavascriptProgramming Scripts

You can try to run the following to learn how to convert Number to String in JavaScript.

Example

Live Demo

<!DOCTYPE html>
<html>
   <body>
      <p>Convert Number to String</p>
      <script>
         var myNumber = 1;
         document.write("String : " + String(myNumber));
      </script>
   </body>
</html>
raja
Published on 26-Feb-2018 12:47:00
Advertisements