Assessment wanted for Math 2 skill test - Vlad

Hi There!

In Javascript > Math 2 Skill Test, the instruction says to " pass this test, finalNumber should have a result of 10.42 ."

I’ve fixed the code to have finalResult to be 10.42. Is this okay and still acceptable?

Live Link: https://vast-reliable-bamboo.glitch.me

Code: https://glitch.com/edit/#!/vast-reliable-bamboo

Cheers,
Vlad

Hi @Vladlen_Vronsky

Congratulations! Your code is correct.

I would say YES :grin:
There’s a more elegant but not so obvious way to get the correct number by using parentheses:

let result = (7 + 13) / (9 + 7);
let result2 = 100 / (2 * 6);

Cheerio,
Michael

1 Like