Help needed for Math 1 skill test. Task 2

I don’t understand why I am getting finalResult is undefined even though I defined it.
actual task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_Math Task: Math 2
My code: https://codeshare.io/DZR1e3

Hi @Talha_Emre_Yenigun and welcome to the community :wave:

This looks good to me, now. Was there a problem with different cases?
FinalResult vs. finalResult?

See you,
Michael

thanks for helping that was it.

1 Like