Assessment wanted for Math 1 skill test!

Math Skill 1 Test

Code Pen JS

I am trying to complete the final step on the assessment:

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

I have looked up online resources and have determined that I need to use the modulus to get a result of 0 but I am unsure how to do so.

Hi @Nathaniel_Rod!

This is looking pretty good.

For the event/odd check thing, you were on the right track.

In the code, you are already supplied with an empty evenOddResult variable, then in the bottom supplied code parts, you are given this:

let evenOddResultCheck = evenOddResult === 0 ? 'The final result is even!' : 'The final result is odd. Hrm.'

So you just need to write a line that calculates whether finalResult modulo 2 is equal to 0 — evenOddResult = finalResult % 2;

1 Like

thank you for the answer it helped me!