Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Global Methods</h1>
<h2>The Number() Method</h2>
<p>Number() converts a value to a number if possible:</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
Number([9]) + "<br>" + 
Number([9.9]) + "<br>" + 
Number([9,9]);
</script>
</body>
</html>