This repository contains a collection of beginner-friendly JavaScript utility scripts that demonstrate basic DOM manipulation and interactive web features.
These scripts are useful for learning core JavaScript concepts and building simple web applications.
project-folder │ ├── index.html ├── script.js ├── calculator.js ├── time.js ├── validation.js ├── counter.js ├── darkmode.js └── README.md
This project includes the following JavaScript functionalities:
Updates text on the webpage when a button is clicked.
Performs addition of two numbers entered by the user.
Displays the current system time and updates every second.
Checks whether required fields are filled before submitting a form.
Allows incrementing and decrementing a number using buttons.
Switches the webpage theme between light mode and dark mode.
- HTML5
- JavaScript (Vanilla JS)
- CSS (optional for styling)
- Clone the repository
git clone https://github.com/USERNAME/REPOSITORY_NAME.git
- Navigate to the project folder
cd REPOSITORY_NAME
- Open the
index.htmlfile in your browser.
This project helps beginners understand:
- DOM Manipulation
- Event Handling
- Functions in JavaScript
- Basic UI Interactions
- Real-time updates using
setInterval