hello all, a query regarding the javascript DOM manipulation part in CS50w
function count() {
counter++;
document.querySelector('h1').innerHTML = counter;
if (counter % 10 === 0) {
alert(`Count is now ${counter}`)
}
}
why does the alert show up first before h1 is manipulated?. According to code h1 is changed first. Can anyone please clarify?
https://youtu.be/uxjEH7sEezo --=-
https://youtu.be/kgjnblW9PHc
https://youtu.be/M7j1cnJySwY
https://youtu.be/qybbN3uuOcg
https://youtu.be/M7j1cnJySwY
https://youtu.be/FxFbFjkevLA
511 travel , weather https://youtu.be/PCOAdyp8uEgv
https://youtu.be/_Wsozh65fqc
https://youtu.be/4sHo70GNbqA
On Thu, Apr 15, 2021 at 12:01 PM smith86n smith86n smith86n@gmail.com wrote:
https://youtu.be/hlZTY4eVtLw
https://youtu.be/d-7o9xYp7eE
On Thu, Apr 15, 2021 at 11:48 AM smith86n smith86n smith86n@gmail.com wrote:
https://youtu.be/wgN5t9Rv2Go
Attachments area
Preview YouTube video Online Advertisement
Preview YouTube video Presentation,Advertisement.Online ,.Motion Picture Comic Book. . A TM a YouTube Commercial
Preview YouTube video Presentation of Sector The Online wireless mobile pay cell_phones
Preview YouTube video Out Door Service
Preview YouTube video Yahoo The Next Google
Preview YouTube video Karl The Artist Hellboy Karaoke
Preview YouTube video A Web link
Preview YouTube video News Reporters
Preview YouTube video Travel 511
Preview YouTube video News Reporters
Preview YouTube video NEWS REPORTERS
Preview YouTube video Clay to Mold