sambow7 / js-objects-lab

0 stars 0 forks source link

Alternative Solution #1

Open DigitalPhoneme opened 1 month ago

DigitalPhoneme commented 1 month ago

https://github.com/sambow7/js-objects-lab/blob/b471cab5b836b61118381c07f8afa1ad44fd27c2/app.js#L36

While this is correct, it may just be clearer to set it like this game.difficulty = "Med"; rather than using an array. I can, however, see how your implementation may make sense if your game had plans to implement a random level feature.

sambow7 commented 1 month ago

I miss read the question and thought it was wanting us to add all three not "or". I made the adjustment thank you