sarahholder / mushroom-picker

0 stars 0 forks source link

Poisonous Mushroom #8

Open sarahholder opened 4 years ago

sarahholder commented 4 years ago

if you pick a poisonous mushroom - the poisonous mushroom should be removed in addition to the 2 mushrooms that die

sarahholder commented 4 years ago
const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
const randomMonth = months[Math.floor(Math.random() * months.length)];

console.log("random month =>", randomMonth);