How Can Assigning value in javascript

How Can Assigning value in javascript


We can assign value in javascript in = sign


Here is the Example of code

<p id="test"></p>

<script>
var a,b
a=10;
b=10
document.getElementById("test").innerHML=a+b;
</script>

Output will be 20 ...