Logical Example 2

if(animal == "Cat" || animal == "Dog") { return "Pet"; }