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:
-
this
result= result *= result2;
can be shorted asresult *= result2;
result *= result2 mean result = result * result2; -
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
wa alaikum alsalam wa rahmatullah
thank you @justsomeone I’m really appreciate your help .
you very welcome @ali_ibrahimi