Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Whac-a-Mole in JavaScript

Code with Ania Kubów via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial guides learners through creating a simple timed Whac-a-Mole game with HTML, CSS, and JavaScript. It covers DOM manipulation, event listeners, timers, randomization, and dynamic class changes.

Syllabus

Intro
Sponsor
Overview
Grid
Styling
Logic
Document Query Selector
Random
Remove mole
Random number
Random square
Move mole
Random squares
Countdown
Adding the mole

Taught by

Code with Ania Kubów

Reviews

Start your review of Whac-a-Mole in JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.