Error in 11/16

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-advanced/exercises/jsx-conditionals-ternary?action=resume

Your ternary operator should look like coinToss() == ‘heads’ ? ‘kitty’ : ‘doggy’
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

var img = <img src={pics[coinToss() == ‘heads’ ? 'kitty ’ : ‘doggy’]} />;


I do not know what's the error.
<do not remove the three backticks above>

var img = <img
src={pics[coinToss()==‘heads’ ? ‘kitty’ : ‘doggy’ ]} />;

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.