August 1999
Intermediate to advanced
1488 pages
72h 53m
English
number.toString()The toString() method of the Number object is used to get a string representation of the Number object.
Listing 6.189 shows how the toString() method is used.
<html>
<body>
<script language="JavaScript">
<!–– Hide
var aNum = Number(21);
document.write("The string value for 21 is: " + "<b>" + aNum.toString() +
"</b>");
// End Hide ––>
</script>
</body>
</html>
|
Read now
Unlock full access