What is the output of the following line?

var animal = 'dog';

function f1() {
  var animal = 'cat';
  return animal;
}

console.log(f1()); // ?

Categories

⚛️ Javascript ⛔️ No computer needed ⛔️ No whiteboarding

Difficulty

😅 Easy

Last Updated: 10/14/2018, 5:06:05 PM