Need help handling await (or promise/resolve, etc.) in JavaScript

I have an HTML template that uses CSS and JavaScript to show a timer (not my code, was taken from code available on internet) that works great. I need the JavaScript to manage a loop for multiple linear executions of the counter based on variables. So the counter will count down XX seconds and then process another timer count down until a specified number of loops is completed. My issue is that the JavaScript is not waiting for the counter function to complete before continuing through the loop. The attached HTML with comments included should make the issue clear.

Kemahiran: JavaScript, CSS, HTML, HTML5, jQuery / Prototaip

Lihat lagi: await inside promise, async/await vs promises, await javascript, async arrow function, convert promise to async/await, javascript promise, async/await fetch, javascript promise example, mp3 files need help transcribing, need help adding google adsense site, freelance need help wsdl file, open source projects need help, need help text website, need help building resume, need help fixing cre loaded, coldfusion website need help, need help finishing work, need help design hair salon, need help mcafee secure vulnerabilities, need help cloning website

Tentang Majikan:
( 6 ulasan ) folsom, United States

ID Projek: #25901332

Dianugerahkan kepada:


Dear sir. I am a web designer.I will help you for this. I went through your description and i am ready to start this project. We can discuss anytime about this project. I will do my level best for you as you wish. Be Lagi

$50 USD dalam sehari
(7 Ulasan)

8 freelancers are bidding on average $133 for this job


Hi I have read your project details carefully. I have rich experience in html css jquery I can carry out your project perfectly Thanks Liao

$140 USD dalam 3 hari
(12 Ulasan)

HI I am experienced in JavaScript CSS HTML5 etc I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your reply

$140 USD dalam 7 hari
(5 Ulasan)

Hi, I'm a Full Stack developer having more than 7 years hands on experience in Javascript. I can fix your counter loop issue easily. Please give me a chance to work with you.

$100 USD dalam sehari
(40 Ulasan)

@@@ High-Speed &&& Best-Quality @@@ Hi. Dear employer. I have enough experience similar this project. My top skill is Website Development. I read carefully your requirements. I am very interested in your project. I'l Lagi

$140 USD dalam 7 hari
(12 Ulasan)

I'm a full-stack developer with more than 10 years of work experience. Expert in BOTH Backend and Front-end Programming, PHP - OOP, MVC, REST API, HTML/CSS/JAVASCRIPT, Codeigniter, Laravel, Angular Js, Wordpress Theme Lagi

$140 USD dalam 7 hari
(12 Ulasan)

Hi, Just I've read your description and I am FAMILIAR to this kind of task. If you must REALLY do this, I will work perfectly with cheap price. Yes, now I have no job and will work in full time with your time zone. My Lagi

$250 USD dalam 3 hari
(6 Ulasan)

⭐⭐Hello. I have keen eye on node [login to view URL] framework is my main skill and I have rich experience of 5 years in this field. React js && javscript framework:Angular js and Vue js,Express js and Node js etc... And I Lagi

$100 USD dalam 7 hari
(6 Ulasan)