const averageScoreOfDolphins = ((96 + 108 + 89) / 3).toFixed([1]);
const averageScoreOfKoalas = ((88 + 91 + 110) / 3).toFixed([1]);
console.log(`The average score of Dolphis is ${averageScoreOfDolphins} and the average score of Koalas is ${averageScoreOfKoalas}`);
// prints The average score of Dolphis is 97.7 and the average score of Koalas is 96.3
if (averageScoreOfDolphins > averageScoreOfKoalas) {
console.log(`That's why the winner is Dolphis`);
} else if (averageScoreOfDolphins === averageScoreOfKoalas) {
console.log(`There's no winner. They have the same average score :)`);
} else {
console.log(`That's why the winner is Koalas`);
}
// prints That's why the winner is Dolphis