0

why this code alert the answer 1 ? .But the varible "x" is not declared!

var x; if(x=1) alert("1"); else alert("0");

9th Aug 2020, 3:05 PM
ILLUMINATIE
ILLUMINATIE - avatar
2 Respostas
+ 2
I appreciate you !
9th Aug 2020, 5:51 PM
ILLUMINATIE
ILLUMINATIE - avatar