Simple Countdown Timer with JavaScript

Simple Countdown Timer with JavaScript

Florin Pop

4 года назад

182,857 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Maintenance informatique et réseaux
Maintenance informatique et réseaux - 18.09.2023 16:37

Nice tutorial

Ответить
brian swan
brian swan - 12.06.2023 21:11

for some reason I can't get the innerHTML statements to work.
Do I have something set wrong in my editor?

Ответить
Jess Silver
Jess Silver - 21.04.2023 18:59

Appreciate it, keep doing what you're doing!

Ответить
Uzoh valentine
Uzoh valentine - 03.04.2023 18:09

The countdown doesn't work in my browser i need help

Ответить
Pooja Shirsat
Pooja Shirsat - 28.03.2023 22:50

In style.css file what you have import sir

Ответить
DINO
DINO - 14.03.2023 17:07

Thank you so much!

Ответить
Muhammad Khan
Muhammad Khan - 22.01.2023 18:31

it doesnt stop at zero

Ответить
Muzamil Zaman
Muzamil Zaman - 24.12.2022 17:01

What have you written in {} brackets? ?

Ответить
Shahid Qureshi
Shahid Qureshi - 14.12.2022 11:33

great video, could you please tell me which font of vscode you are using in your video . ...

Ответить
Antonio Sergio
Antonio Sergio - 23.11.2022 04:45

Neat algorithm

Ответить
DS
DS - 27.10.2022 13:01

i was wondering how you could make it so it doesnt show blank on refresh but just starts with the numbers immediately?

Ответить
Jeff Patterson
Jeff Patterson - 14.10.2022 22:47

Nothing changes when I add the body and p text to the CSS file

Ответить
Kratos1
Kratos1 - 21.08.2022 17:28

thanks bro

Ответить
Rymdfararen
Rymdfararen - 18.08.2022 21:04

what is wrong with my code


const startingMinutes = 10;
let time = startingMinutes * 60;

const countdownEl = document.getElementById('countdown');

setInterval(updateCountdown, 1000);

function updateCountdown() {
const minutes = Math.floor(time / 60);
let seconds = time % 60;

countdownEl.innerHTLM = `${minutes}:${seconds};`;
time--;
}

Ответить
Smart Head
Smart Head - 15.08.2022 17:42

`

Ответить
Marcus Wright
Marcus Wright - 15.08.2022 01:36

Thanks great tutorial

Ответить
Slesha Patil
Slesha Patil - 02.08.2022 13:57

whcih link you have put in style.css???

Ответить
Cedrick
Cedrick - 28.06.2022 20:00

I'm new in js ispent hours thinking ` is same as ' F

Ответить