“Assessment wanted for Math 1 skill test”

hey everybody I’m attempting to run my code, but it isn’t working.
Here is the tobic on mdn

Please assist me if there is an issue or if I am missing something, thank you. here is my codepen

elslamo alikom @ali_ibrahimi

you doing great you even very close
the issue here

finalResult = evenOddResult % 2 === 0 ?
           "false" : "true" ;
  1. i guess you replaced evenOddResult with finalResult places
  2. and the task want you to only right the code to check for even i guess it issue in explaining the task

so it should be like that
evenOddResult = finalResult % 2;

by the way in your future post it would be better to include a link to the task or topic you asking about so it be easy for us to get to it

hope that help and have a nice day :slight_smile:

1 Like

wa alaikum alsalam , brother
Thanks for your response; I apologize for not including the assignment; I’ve changed my post, so you can check it out if you like.

you very welcome and do not be sorry the issue in the code as above i guess you need to update the codepen link so i can see the new update if you made it

1 Like

I’ve updated the codepen link and i think i did it right i will appreciate any feedback.

you only fixed the first step but forget about the second one

this is how it should look like

1 Like

Oops ,:man_facepalming:t2: i missed it
Thanks for your time and helping me :heart:

1 Like

i still see it as this evenOddResult = finalResult % 2? "false" : "true" ;

replace this :point_up_2: with this :point_down:

evenOddResult = finalResult % 2;

and you very welcome :slight_smile:

1 Like

Thats right bro
I thought that the question mark is necessary
it’s a bit challenging learning the javascript
But i enjoy it and its really great to find this community and people like you.

2 Likes

the ? is part of the Conditional (ternary) operator
i agree that the question was not clear about what is evenOddResult should be i had to read the provided code to know that
hope they could explain the task in better way
and you doing great and the more you practice the more you will get it

and i totally agree that the community is awesome here
and it’s an honor to help you and it was nice to meet you brother :slight_smile:

2 Likes