-1

It's quite hard to find this answers on Google because this characters are used for other purposes.

This is a example in React:

return (
   <div>
   {sec == 0 ? ( // This one
      ""
   ) : ( // And this one
      <div></div>
   )}
   </div>
)

Thanks

3

1 Answer 1

0

You can see the explanation in these docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator

Sign up to request clarification or add additional context in comments.

1 Comment

This is a link only answer and has already been covered in the comments. To be considered an answer you should put the essential information in your answer and add the link for further reference. Otherwise it should be a comment!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.