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 whiteboardingDifficulty
var animal = 'dog';
function f1() {
var animal = 'cat';
return animal;
}
console.log(f1()); // ?
Categories
⚛️ Javascript ⛔️ No computer needed ⛔️ No whiteboardingDifficulty
😅 Easy