welcome to Learning World,Worlds No.1 dastination for Learning. Stay With Us for New Updates and Follow us On FB and Google+.

Welcome to Free learning World Learning World: Java script

Search Here

Tuesday, November 8, 2016

Java script

Assigning the value to variable

<!DOCTYPE html>
<html>
<body>

<h1>Assigning Values</h1>

<p>In JavaScript the = operator is used to assign values to variables.</p>

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

<script>
var x = 5;
var y = 6;
document.getElementById("demo").innerHTML = x + y;
</script>

</body>

</html>

No comments:

Post a Comment