Basic math in JavaScript. Can you solve this?

I am totally clueless here.

The test has like 5 tasks, till 4 its simple maths where you just define 4 Numbers and perform 2 calculations to get an answer of 48 (Till here, all done & good)

Then the last like, point 5 ask us:

  1. Finally, write a calculation that checks whether finalResult is an even number. Store the result in a variable called evenOddResult.

And its here where I am stuck :frowning:

instead of doing this check yourself you just need to assign the result of the reminder operator to the evenOddResult variable, because the already written code is checking if evenOddResult equals 0 or not

itโ€™s still simple math, it just wants you to use the reminder operator and assign the result to a variable. itโ€™s probably not that clear tho

Did that, but no luck

if you want help about this same topic, why donโ€™t you create your own thread and post your code there?

1 Like