What value is obtained when executing the following code?
let animal = 'cat';
let sound = animal === 'dog' || animal === 'cat' ? 'makes noise' : 'does not make noise';
console.log(sound);
What value is obtained when executing the following code?
let animal = 'cat';
let sound = animal === 'dog' || animal === 'cat' ? 'makes noise' : 'does not make noise';
console.log(sound);