mohammedq91 / rock-paper-scissors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vanilla JavaScript rock-paper-scissors

A simple Rock-Paper-Scissors game written entirely in Javascript, HTML, and CSS.

Play it here

Summary

This project highlighted the significane of minimizing global variables utility and of using local variables inside functions, instead. I learned how to access the DOM and loop through one element at a time and add Event Listener to it. I learned how to declare a fucntion to use to perform one task only, to recall the function, passing through needed variables/constants to other functions through their argument/parameters. I also learned how to use template literals and implement variables to them to have dynamic displays. Finally, I was introduced to switch statement.

Author

About


Languages

Language:JavaScript 67.7%Language:HTML 28.3%Language:CSS 4.0%