<script>
var x = 5;
var y = 'a';
var e = 6;
var z = x + y+e;
document.getElementById("demo").innerHTML =
"The value of z is: " + z;
</script>
Output:The value of z is: 5a6
var x = 5;
var y = 'a';
var e = 6;
var z = x + y+e;
document.getElementById("demo").innerHTML =
"The value of z is: " + z;
</script>
Output:The value of z is: 5a6
No comments:
Post a Comment