Create a variable called myNumber, assign the value 50 to it, and display it. - Javascript Math

Javascript examples for Math:Quiz

Description

Create a variable called myNumber, 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 myNumber = 50;/*from w ww.ja va  2 s.  c  o m*/
document.getElementById("demo").innerHTML = myNumber;
</script>

</body>
</html>

Related Tutorials