Skip to content

Commit 9494c3d

Browse files
author
russom
committed
Update function to work for any input.
1 parent d9197c4 commit 9494c3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎dead-code/exercise-2.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ function countAndCapitalisePets(petsArr) {
1919
return petCount;
2020
}
2121

22-
console.log(countAndCapitalisePets(pets));
22+
const animals = ["lion", "hyena", "elephant", "hippo", "tiger", "hippo"]
23+
console.log(countAndCapitalisePets(animals));

0 commit comments

Comments
 (0)