+ 4

var x=0; var y=8; if(false ) console .log(x); else console .log(y); //8

27th Dec 2018, 4:56 PM
Hafsa Mohamed
Hafsa Mohamed - avatar
3 Answers
+ 4
Rewa Mathur when the condition if becomes true and when it becomes false
27th Dec 2018, 5:08 PM
Hafsa Mohamed
Hafsa Mohamed - avatar
+ 4
Rewa Mathur var x=0; var y=0; if(true ) console .log("true"); else console .log("false"); //true the if(x&&y) is false but still executing the if part ??
27th Dec 2018, 5:33 PM
Hafsa Mohamed
Hafsa Mohamed - avatar
+ 3
Raj Chhatrala explanation please
27th Dec 2018, 4:57 PM
Hafsa Mohamed
Hafsa Mohamed - avatar