In JavaScript,

let foo = 0
if (true, false) {
  foo = 1
}

foo is ... ?

let foo = 0
if (false, true) {
  foo = 1
}

foo is ... ?