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
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