Build a Fortune Telling App - Step 31

Tell us what’s happening:

Hi Everyone,
I don’t understand why the code doesn’t pass or I don’t understand the task.

What I get is “2. Your isReversed variable should use Math.random() to randomly decide if the card is reversed.”

Can anybody please have a look on it?

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: index.ts */
// User Editable Region
    const isReversed = Math.random() > 0.5 ? true : false;
// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Edg/152.0.0.0

Challenge Information:

Build a Fortune Telling App - Step 31

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-fortune-teller-app/68ee6c4b4c764b62d77df717.md at main · freeCodeCamp/freeCodeCamp · GitHub

what value does this expression prdoduce?