0

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");
}
mplungjan
  • 169,008
  • 28
  • 173
  • 236
Ram Ratan Bairar
  • 164
  • 1
  • 11

0 Answers0