sarahholder / mushroom-picker

0 stars 0 forks source link

Basket and Button #3

Open sarahholder opened 4 years ago

sarahholder commented 4 years ago

User Story

As a user when the page loads I should see an empty basket div

AC

WHEN The page loads I should see an empty basket where picked mushrooms will go. THEN I should also see a forest div that shows all the mushrooms in the forest from #2.

Dev Notes

  1. At the top of the mushroomData.js file create a basket empty array.
  2. Create a button in the app file that call a pickAMushroomEvent function under the h1 tag that calls the mushroomData.pickAMushroom() function.
sarahholder commented 4 years ago

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random

sarahholder commented 4 years ago

https://www.w3resource.com/javascript-exercises/javascript-array-exercise-35.php