JavaScript Tutorial – Create a Card Game 🃏

Ecommerce Empire Academy

Improve your JavaScript skills by creating a basic card game with HTML and CSS. ♣️♥️♠️♦️

This tutorial not only covers creating a basic card game using JavaScript
but also:
– how to create dynamic user interactive code using vanilla JavaScript
– Creating some animation effects
– Responsive layout design using CSS grid, CSS FlexBox and media queries
– How to dynamically change the positions of grid cells, so as to randomize the positions of the cards contained in a css grid using JavaScript,
– localStorage functionality
– And much More…

💻 Code:

✏️ Gavin Lon created this tutorial. Check out his channel:

⭐️ Contents ⭐️
⌨️ (0:00:00) Introduction
⌨️ (0:05:26) Getting Started
⌨️ (0:07:00) Live Server Extension
⌨️ (0:09:50) Create Cards – HTML
⌨️ (0:14:44) Create the Game Play Grid
⌨️ (0:19:55) Create Cards Dynamically – JS Code
⌨️ (0:28:46) Initialise Card Positions
⌨️ (0:34:39) Load Game and Start Game
⌨️ (0:38:43) Stack Cards
⌨️ (0:41:53) Flip Cards
⌨️ (0:45:14) Shuffle Cards
⌨️ (0:49:28) Deal Cards
⌨️ (0:54:37) Choose Card
⌨️ (1:16:56) Styling and Layout
⌨️ (1:24:28) Animation
⌨️ (1:32:39) Responsive Layout
⌨️ (1:36:43) Local Storage

🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

21 thoughts on “JavaScript Tutorial – Create a Card Game 🃏”

  1. 1st comment!!!
    Viewing when 1min till publish.
    We are all getting better day by day ❤️

  2. Guys I need help im new to coding, I want to create io games on websites and websites in generall, what programing languages should I learn? I want learn Python, C#, C++ are these the correct ones?

  3. Great courses but I getta ask, will ChatGPT taking over FCC and other sources? that’s a great question to ask ChatGPT.

  4. Tharinda Kodikara

    Playing card games is my favourite hobby and JavaScript is one of my favourite languages!

    Thanks so much for this tutorial ❤❤❤

  5. I created this video primarily to help those interested in web development with their familiarity with JavaScript and associated web development technologies (HTML and CSS). In this video we go through the step by step creation of a basic card game that runs in the users browser which hopefully provides a great context for practicing our JavaScript skills. I hope you enjoy this video and benefit from it. A special thank you to FreeCodeCamp for sharing this video!

Comments are closed.