+ 5
Can any one explain me why output of the below code is 48?
var x="2*2" var y=4 var z=eval(x+y) document.write(z)
2 Respostas
+ 13
var x is string and y is integer.
in javascript + with script is concatenation so x+y result 2*24 eval will evaluate the result which is 48.
+ 3
ok thank you