Skip to content

Commit 25c6bac

Browse files
authored
Create challenge-3.js
1 parent dd963fa commit 25c6bac

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

challenge-3.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const scoreDolphins = (96 + 108 + 89)/3;
2+
const scoreKoalas = (88+89+99)/3;
3+
console.log(scoreDolphins,scoreKoalas);
4+
5+
if(scoreDolphins>scoreKoalas);
6+
{
7+
console.log(`Dolphines own the match `);
8+
}
9+
10+
else if (scoreKoalas>scoreDolphins);
11+
{
12+
console.log(`Koala own the match`);
13+
}
14+
15+
else if (scoreDolphins===scoreKoalas);
16+
{
17+
18+
console.log(`Both own the match`);
19+
}

0 commit comments

Comments
 (0)