What value is printed when executing the following code?
let animal = 'cat';
if (animal === 'dog') {
animal = 'woof';
} else {
animal = 'meow';
}
console.log(animal);
What value is printed when executing the following code?
let animal = 'cat';
if (animal === 'dog') {
animal = 'woof';
} else {
animal = 'meow';
}
console.log(animal);