You will need to use an
if else
for this challenge.
Each cat in
catsData
has an
isGif
property.
You can have two return statements: one in the
if
clause and one in the
else
clause.
The ‘logical and’ (
&&
) operator will likely be helpful here! Use it to check if a cats
emotionTags
has the selected emotion AND has
isGif
set to
true
.