Is there a way to simplify this code into one line without using an if-else statement? For example, updating all variables when a specific condition is met?
const dogStatus = present ? "bark" : "beep";
const catStatus = present ? "meow" : "meep";
const fishStatus = present ? "blub" : "bleeboop";