Skip to content

Commit e256a46

Browse files
authored
Update objects-arrays.js
1 parent 108335d commit e256a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/objects-arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ What is the length of all 3 objects
1818
*/
1919

2020
// Create a new bark method for the dog. When called, return "Woof!"
21-
// Create a new hunt method for the tiger. When called, if Math.random(10) is greater than 7, return "Tiger hunt successful" and add 5lb to the weight. If it is not, return "Tiger goes hungry" and subtract 5lbs to the weight.
21+
// Create a new hunt method for the tiger. When called, if Math.floor(Math.random() * 11) is greater than 7, return "Tiger hunt successful" and add 5lb to the weight. If it is not, return "Tiger goes hungry" and subtract 5lbs to the weight.
2222
// Create a new climb method for the koala. When called, return "Eucalyptus is great"
2323

2424

0 commit comments

Comments
 (0)