Sunday, 25 February 2018

Interview question: what is the out put of below question?

<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

No comments:

Post a Comment