Code Tetris: JavaScript Tutorial for Beginners

Code Tetris: JavaScript Tutorial for Beginners

freeCodeCamp.org via freeCodeCamp Direct link

Drawing Tetrominoes using classList.add()

9 of 19

9 of 19

Drawing Tetrominoes using classList.add()

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Code Tetris: JavaScript Tutorial for Beginners

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Introduction
  2. 2 Setting up the project
  3. 3 HTML Basics
  4. 4 CSS Basics
  5. 5 Explaining Variables
  6. 6 Working with Arrays
  7. 7 What exactly is a function?
  8. 8 Arrow Functions and forEach()
  9. 9 Drawing Tetrominoes using classList.add()
  10. 10 Times and intervals
  11. 11 Using Modulus to define our place on the grid
  12. 12 Keycodes and events
  13. 13 Choosing items from Arrays
  14. 14 Displaying the ‘Next Up’ Tetromino
  15. 15 Adding a start and pause game function.
  16. 16 Splice()
  17. 17 Splice(), concat() and appendChild()
  18. 18 Game over using some() and innerHTML
  19. 19 Assigning colors to our Tetrominos

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.