Computer >> Computer tutorials >  >> Programming >> Javascript

How to convert Number to String in JavaScript?


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

Example

<!DOCTYPE html>
<html>
   <body>
      <p>Convert Number to String</p>
      <script>
         var myNumber = 1;
         document.write("String : " + String(myNumber));
      </script>
   </body>
</html>