JavaScript Interview Questions - Part 1

#1

What is the output?

function baz() {
  console.log(a);
  console.log(b);
  var a = "Backbencher";
  let b = 1;
}
baz();

A. "Backbencher" and 1

B. Reference error

C. undefined and Reference error

D. null and null

Answer: C