1var myNumber=120;
2var myString = myNumber.toString(); //converts number to string "120"
1<script language="JavaScript" type="text/javascript">
2var a = 3.3445;
3var c = a.toString();
4alert(c);
5</script>
6
1var myNumber=120;
2var myString = myNumber.toString(); //converts number to string return: "120"