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
1parseFloat("16.5"); // 16.5
2parseInt("34.6"); // 34
3JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); // {name: "John", age: 30, city: "New York"}