Skip to content

Commit 595fb01

Browse files
widemouthed frog exercise 8kyu complete
1 parent e885225 commit 595fb01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

restOfThe8kyus/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010

1111
<body>
12-
<script src="js/merge2SortedArraysIntoOne.js"></script>
12+
<script src="js/wideMouthedFrog.js"></script>
1313
</body>
1414

1515
</html>

restOfThe8kyus/js/wideMouthedFrog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function mouthSize(animal) {
77
//todo given argument string
88
//todo check if alligator - if alligator return 'small'
99
//todo otherwise return 'wide'
10+
return animal.toLowerCase() == "alligator" ? "small" : "wide";
1011
}
1112

1213
console.log(mouthSize("toucan"));

0 commit comments

Comments
 (0)