Create a variable called number, assign the value 50 to it, and display it. - Javascript Data Type

Javascript examples for Data Type:var

Description

Create a variable called number, assign the value 50 to it, and display it.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var number = 50;/*from  w w  w.  j  a  v  a2  s .c  om*/
document.getElementById("demo").innerHTML = number;
</script>

</body>
</html>

Related Tutorials