0

Using alert

From the code bit attached, I noticed that alert would always execute first irrespective of it's position in the algorithm. Perhaps I'm still missing something, can someone please shed more light on this? https://code.sololearn.com/WXhDL3mcs9u7/?ref=app

25th Feb 2020, 12:51 PM
Unabashed_Newbie
Unabashed_Newbie - avatar
1 Answer
+ 2
no it wont, try this let calc = 5*30/2.3*39; alert(calc); if alert fired first, it wont have a chance to show the result of calc. it still wait until previous instruction to finished
25th Feb 2020, 12:56 PM
Taste
Taste - avatar