JavaScript dice roll

Overview

Interactive dice roll

date

February 2017

tools used

HTML, CSS & JavaScript

How

Following a course from an awesome teacher called Jonass Schemdtmann view his website. The project focuses on using dom mulipulation and creating interactive dice rolls through random numbers. The game combines all basic js in a neat way.

Learnt

Updating image src based on random number. creating init functions to hold starting code. keeping the code dry. dom mulipulation.

See the Pen DOM Pig game by Harry Beckwith (@fun) on CodePen.

← Back to all projects