Test your skills: Math2

hello every one I was wondering how can I check the typeof of the finalResult
inside that activity,
Math2 activity I have tried it but no result shows up
I’ve already solved the task and this is my codepen

any feedback will be appreciated
thank you!

Eslamo alikom @ali_ibrahimi

you doing great well done just some note:

  1. this result= result *= result2; can be shorted as result *= result2;
    result *= result2 mean result = result * result2;

  2. for the typeof you can use that console.log(typeof finalResult);
    i just print the result of the typeof on the console

for more details about typeof check this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof

in codepen there console button in the lower side of the result panel click on it and you will see it type string
but the console in your browser can be access by going to the developer tools then choose the console tab from there

hope that help and have a nice day :slight_smile:

2 Likes

wa alaikum alsalam wa rahmatullah
thank you @justsomeone I’m really appreciate your help . :heart:

1 Like

you very welcome @ali_ibrahimi

1 Like