A collection of basic JavaScript exercises covering fundamental programming concepts and mathematical calculations.
- File:
sintadolar.html
,sintadolar.js
- Description: Convert USD to IDR with exchange rate calculation
- Concept: Basic arithmetic, DOM manipulation
- File:
rata-rataswa.html
,rata-rataswa.js
- Description: Calculate average grades from multiple subjects
- Concept: Array processing, mathematical operations
- File:
tokobuah.html
,tokobuah.js
- Description: Manage fruit inventory with distribution calculation
- Concept: Division, remainder operations, logical thinking
- File:
waktutempuh.html
,waktutempuh.js
- Description: Calculate travel time based on distance and speed
- Concept: Time calculation, unit conversion
- File:
rinabaju.html
,rinabaju.js
- Description: Calculate final price after discount
- Concept: Percentage calculation, price computation
-
Clone this repository:
git clone https://github.com/CharlyIslami/javascript-basic-exercises.git
-
Navigate to the project directory:
cd javascript-basic-exercises
-
Open any HTML file in your browser:
# Example open sintadolar.html
- HTML5 - Structure and layout
- Vanilla JavaScript - Logic and functionality
- Basic JavaScript syntax and operations
- DOM manipulation and event handling
- Mathematical calculations and problem solving
- User input validation and processing
- Clean code practices
- Variables and data types
- Functions and return values
- Conditional statements
- Mathematical operations
- HTML form handling
- JavaScript event listeners
These exercises are designed for beginners to practice fundamental JavaScript concepts. Each exercise focuses on real-world problem solving scenarios.
This project is open source and available under the MIT License.
Created with ❤️ for learning JavaScript fundamentals