In ES2015,

if (true) {
  var foo
  let bar
  const baz = 1
}

foo //=> undefined
bar //=> ?
baz //=> ?