I've two conditions as below where both are true. What is difference between i==5 and 5==i ?
var i=5;
if(i==5){
console.log("hello");
}
if(5==i){
console.log("hello");
}
I've two conditions as below where both are true. What is difference between i==5 and 5==i ?
var i=5;
if(i==5){
console.log("hello");
}
if(5==i){
console.log("hello");
}