+ 2
Help me please!!
var x = 4; var y = 5; var d = 4 + z; var z = y - x; var c = x + z + d + y; alert(c); Why result is NaN, not 15? I don't understand !!
7 Respuestas
+ 5
z is not defined
+ 4
you are trying to add z before declaring it.
Move var d = 4+z after the line var z = y-x
+ 2
He is very correct, your placement was just a bit off, keep up the energy and stay invested.
var x = 4;
var y = 5;
var z = y - x;
var d = 4 + z;
var c = x + z + d + y;
alert(c);
+ 2
Hey,are you related to a guy named vy nguyen?
+ 2
No. I don't know who named vy nguyen. #Samuel Adams
+ 1
Oh. Thank you very much!!
0
move z=y-x before d=4+z