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 = parseInt(a);
4alert(c);
5</script>
1
2var myNumber=120;
3var myString = myNumber.toString(); //converts number to string "120"