<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=resumeYour 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>