A collection of small Vanilla JavaScript projects to practice DOM manipulation, event handling, and logic building.
A simple Blackjack game that allows the player to hit, stand, or reset the game.
- Features: Basic game logic, random card selection, and scoring.
Click a button to randomly change the background color!
- Features: Hex & RGB color modes, event listeners.
Convert human years to dog years.
- Features: Simple arithmetic calculations.
Convert Kelvin to Celsius and Fahrenheit.
- Features: Temperature conversions.
Ask a question and get a random Magic 8-Ball prediction.
- Features: Randomized responses.
A simple people counter that keeps track of the number of visitors.
- Features: Increment/decrement functionality, local storage.
Determines your race start time based on age and registration time.
- Features: Conditional logic.
A classic Rock, Paper, Scissors game against the computer.
- Features: Randomized choices, event handling.
A dynamic survey form that captures and validates user input.
- Features: Form validation, real-time feedback.
A basic HTML and CSS survey form.
- Clone this repository:
git clone https://github.com/anamstoica/vanilla-js-projects.git
- Navigate into the project folder:
cd vanilla-js-projects - Open any project folder and launch
index.htmlin your browser.