I am trying to add the move function to each animal object. I get the function to work, creating a random number from 1-10. At first I tried passing that function into each animal but realized it would output the same number for all. Now, I am trying to write,
superChimpOne[“move”] = function(){let steps = Math.round(Math.random()*10); return (steps); };
When I check the results of this, I get
move: [Function]
As my key/value output. I want the number to return.