<!DOCTYPE html>
<html>
<body>
<p id="myP"></p>
<script>
var x=5;
var y=x+2;
document.getElementById("myP").innerHTML=y
</script>
<p><strong>Note:</strong> The comments are not executed.</p>
</body>
</html>
var- is varible of javascript.
myP - is id of p tag.
y - is varible .
x=5 - min x value 5.
y=x+2 - min x+2= 7 ,and show in y
strong - is tha tag to use blod the text,
No comments:
Post a Comment