Shalveena / piggame

Home Page:https://shalveena.github.io/piggame/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pig Game

Note: This was a project done as part of a Udemy Course. I wrote the JavaScript myself, but was given the HTML and CSS starter files.

Concepts Practiced in this Project

DOM Manipulation

  • Targeting elements
  • Changing the classes of the elements (using the classList property and add, remove, and toggle methods on it)
  • Changing text content of the elements
  • Changing attributes of elements

Event Handler Registration

  • Adding event listeners to DOM elements for "click" event
  • Working with event handler functions

If and else statements

Functions

Generating random numbers

Array basics:

  • Declaring/defining variable containing empty array
  • Accessing elements in the array
  • Changing value of elements in the array

About

https://shalveena.github.io/piggame/


Languages

Language:JavaScript 50.1%Language:CSS 34.4%Language:HTML 15.5%