Coding Challenge #66: JavaScript Countdown Timer

Share this & earn $10
The Coding Train
Published at : 08 Nov 2020
169535 views
2600
78

In this video, I use the p5.js library to create a web-based countdown timer. I discuss the native JavaScript method setInterval() as well as p5's millis().

💻Challenge: https://thecodingtrain.com/CodingChallenges/066-timer.html

Links discussed in this video:
🔗millis() reference: https://p5js.org/reference/#/p5/millis
🔗getURLParams() reference: https://p5js.org/reference/#/p5/getURLParams

🚂Website: https://thecodingtrain.com/
💡Github: https://github.com/CodingTrain
💖Membership: https://youtube.com/thecodingtrain/join
🛒Store: https://www.designbyhumans.com/shop/codingtrain/
📚Books: https://www.amazon.com/shop/thecodingtrain
🖋️Twitter: https://twitter.com/thecodingtrain

🎥Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
🌐Help us caption and translate: http://www.youtube.com/timedtext_cs_panel?c=UCvjgXvBlbQiydffZU7m1_aw&tab=2
🚩Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
👾Share your contribution: https://thecodingtrain.com/Guides/community-contribution-guide.html
JavaScript (Programming Language)liveprogramming

Why I started to learn English?

Why I started to learn English?

Discovery of what is generally called Membrane (Photography by Phase contrast microscopy)

Discovery of what is generally called Membrane (Photography by Phase contrast microscopy)

It Came Upon A Midnight Clear - piano cover - pianotunes

It Came Upon A Midnight Clear - piano cover - pianotunes

Using Conjunctions - And & But - English Grammar lesson

Using Conjunctions - And & But - English Grammar lesson

Lutan Fyah - Giggling [Official Video]

Lutan Fyah - Giggling [Official Video]

Visa vs. Mastercard: What's the Difference? Which is better? Which is easier or harder to get?

Visa vs. Mastercard: What's the Difference? Which is better? Which is easier or harder to get?

NGHTMRE & Subtronics - Nuclear Bass Face feat. Boogie T (Visualizer) [Ultra Music]

NGHTMRE & Subtronics - Nuclear Bass Face feat. Boogie T (Visualizer) [Ultra Music]

Cartoon Super Mario Growing Up Compilation - Mario vs Bowser

Cartoon Super Mario Growing Up Compilation - Mario vs Bowser

How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework

How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework

Locator caught Mis-Locating a gas line

Locator caught Mis-Locating a gas line

What God told me about my failure that led to The Chosen | Dallas Jenkins

What God told me about my failure that led to The Chosen | Dallas Jenkins

Rapper Meek Mills Offers Philly Rappers A Deal If They Stop The Violence Here's My Take

Rapper Meek Mills Offers Philly Rappers A Deal If They Stop The Violence Here's My Take

Alannah Myles - Song Instead Of A Kiss

Alannah Myles - Song Instead Of A Kiss

Dividends: Stock Dividends & Accumulating vs Distributing ETFs

Dividends: Stock Dividends & Accumulating vs Distributing ETFs

Experience Immersive Virtual Trade Exhibition at MIFF Furniverse

Experience Immersive Virtual Trade Exhibition at MIFF Furniverse

CarPro Clear CUT Rapid Cut Compound!! Heavy defect remover! How does it stand up to the rest?

CarPro Clear CUT Rapid Cut Compound!! Heavy defect remover! How does it stand up to the rest?

36 SPLENDID HACKS FOR ANY KIND OF TROUBLE

36 SPLENDID HACKS FOR ANY KIND OF TROUBLE

Essential gear for a hiking trip: 15 Basic items.

Essential gear for a hiking trip: 15 Basic items.

My collection of handbags Моя коллекция сумок

My collection of handbags Моя коллекция сумок

Using Awls for Drilling

Using Awls for Drilling

HOARDER HOUSE Honey Hole or Trash DUMP?? Owner has to ABANDON EVERYTHING! 40 Years UNBOXING VIDEO!

HOARDER HOUSE Honey Hole or Trash DUMP?? Owner has to ABANDON EVERYTHING! 40 Years UNBOXING VIDEO!

Michael Bublé - Feeling Good [Official Music Video]

Michael Bublé - Feeling Good [Official Music Video]

MOM ASKS QUESTIONS ABOUT BISEXUALITY

MOM ASKS QUESTIONS ABOUT BISEXUALITY

Capability-Based Planning Using TOGAF (Part 1) - AEA Webinar #6 - 12 June 2015

Capability-Based Planning Using TOGAF (Part 1) - AEA Webinar #6 - 12 June 2015

HAMMERFALL - Any Means Necessary (OFFICIAL MUSIC VIDEO)

HAMMERFALL - Any Means Necessary (OFFICIAL MUSIC VIDEO)

Advanced Bodyweight Workout

Advanced Bodyweight Workout

Journey With The Jones & Kingsboroughs 1st Business Charter: Video 2 of 2

Journey With The Jones & Kingsboroughs 1st Business Charter: Video 2 of 2

Why Avoiding Salt May Be a Huge Health Mistake

Why Avoiding Salt May Be a Huge Health Mistake

Use These Seams On Your Next Sportswear Collection

Use These Seams On Your Next Sportswear Collection

Active Shooter Shooter Training for Faculty & Staff

Active Shooter Shooter Training for Faculty & Staff

Conventional Loans - Pros and Cons

Conventional Loans - Pros and Cons

Them Crooked Vultures You Can't Possibly Begin To Imagine Live Tokyo, Japan 10 HIGH QUALITY

Them Crooked Vultures You Can't Possibly Begin To Imagine Live Tokyo, Japan 10 HIGH QUALITY

Sippy Gill : GENUINE YAAR | Desi Crew | Stalinveer | New Punjabi Song 2017 | Saga Music

Sippy Gill : GENUINE YAAR | Desi Crew | Stalinveer | New Punjabi Song 2017 | Saga Music

Paperwork [Prod. By J Stove] Official Video (Shot & Edited By @MemphisFilms

Paperwork [Prod. By J Stove] Official Video (Shot & Edited By @MemphisFilms

HUGE VARIETY OF GOTTA AND  EMBROIDERED MULTANI SUITS| UNEDITED VIDEO

HUGE VARIETY OF GOTTA AND EMBROIDERED MULTANI SUITS| UNEDITED VIDEO

Практика JavaScript. Задача #1. Работаем с input.

Практика JavaScript. Задача #1. Работаем с input.

Zeni N - Leave It All Behind (Mad Morello & Igi Remix)

Zeni N - Leave It All Behind (Mad Morello & Igi Remix)

Heritage Singers / "God Will Take Care Of You" (Live from Prague)

Heritage Singers / "God Will Take Care Of You" (Live from Prague)

SCIENCE 4  MODULE | QUARTER 1 - MODULE 1| Materials that Absorb Water, Float, Sink and Undergo Decay

SCIENCE 4 MODULE | QUARTER 1 - MODULE 1| Materials that Absorb Water, Float, Sink and Undergo Decay

Malta experience | Jugipelaa | Water fight |  Around the Globe 1 - Pilot

Malta experience | Jugipelaa | Water fight | Around the Globe 1 - Pilot

Typical Justin829j Reacts To M8N vs COLONEL Don't Miss

Typical Justin829j Reacts To M8N vs COLONEL Don't Miss

Parabolas in General Form - How to Graph

Parabolas in General Form - How to Graph

I'm Yours - Jason Mraz (Lyrics) 🎵

I'm Yours - Jason Mraz (Lyrics) 🎵

★BIG BIG WIN WIN ! SO MANY FREE SPINS !!★CASH EXPRESS LUXURY LINE / TIMBER WOLF Slot☆$3.75 Bet☆栗スロ

★BIG BIG WIN WIN ! SO MANY FREE SPINS !!★CASH EXPRESS LUXURY LINE / TIMBER WOLF Slot☆$3.75 Bet☆栗スロ

Highly regarded

Highly regarded

Economics of Land Transport in Singapore - Managing Traffic Congestion in Singapore

Economics of Land Transport in Singapore - Managing Traffic Congestion in Singapore

Calli Boom & RYVN - Virtue (Magic Free Release)

Calli Boom & RYVN - Virtue (Magic Free Release)

6 MAGIC TRICKS You Can Do At Home

6 MAGIC TRICKS You Can Do At Home

Paneer burji | using home made paneer & special masala | must try paneer dish

Paneer burji | using home made paneer & special masala | must try paneer dish