Shubham Gaikwad
KPCKevin Powell - Community
•Created by Å Marlon G on 6/16/2023 in #front-end
JS in JSX for newbie
[ coinToss() === 'heads' ? 'kitty' : 'doggy' ] here coinToss() return the string object and this object should be equal to the 'heads' and his datatype should be same if it is true then he will return kitty picture url otherwise doggy and here used conditional operator ok
26 replies