Function Declarations vs Expressions

What is the output of this code?
foo();
function foo() {
  console.log('A');
}
foo();
function foo() {
  console.log('B');
}
foo();
Next Question (3/20)