Marina Mosti is a full-stack web developer with over 14 years of experience in the field. She enjoys mentoring other women on JavaScript and her favorite framework, Vue.
It works, but it's a little overkill :) You can pass the whole 'game' object to the function, that way you don't have to .find on the array. Also, be careful with ==, as a best practice try to use === that way you won't run into very hard to understand bugs with types! :D
My Solution for the challenge
thepracticaldev.s3.amazonaws.com/i...
It works, but it's a little overkill :) You can pass the whole 'game' object to the function, that way you don't have to
.find
on the array. Also, be careful with==
, as a best practice try to use===
that way you won't run into very hard to understand bugs with types! :Dnoted. Thanks