Converting a Number to a String : Number Data Type : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Number Data Type »

 

Converting a Number to a String



<html>
<body>
<script type="text/javascript">
<!--
  function numToString(number) {
    number += "";
    return number;
  }
   
  var number = 10;
  alert(typeof number);
  number = numToString(number);
  alert(typeof number);
//-->
</script>
</body>
</body>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Number Data Type