Take a look at Heather’s response to Spacegras above.
The puzzle is looking for
if (answer === 'heads'), which is a bit picky because your code will still draw 2 different pictures depending on whether the
answer is heads or tails. It might make sense to make this change though, because your pictures will draw a green “T” shape if the
answer is heads and an orange “H” shape if the
answer is tails, which seems backwards.
Yeah! Done ! Your answer helped me ️very much thanks
not getting correct
Your 2nd If Statement
if ('heads' === 'tails') will always be false, so it will never run the code inside its block
Try making it check if the
answer is equal to
'tails' by using
if (answer === 'tails')
We need to use same Colors for both heads and tails
No, you can draw any pattern you want and use any colors.
I tried this in the playground but it didnt work
The playground won’t have any blue feedback hints or show the completion, but you should be able to recreate the code.