JavaScript Operations Project
This project demonstrates basic JavaScript operations using one single HTML file. The project
contains three simple programs that show how JavaScript performs calculations and makes
decisions based on conditions.
1. Area of a Rectangle
In this section, the user enters the length and width of a rectangle. JavaScript multiplies the length
by the width to calculate the area using the formula: Area = Length × Width.
2. Checking if a Number is Greater Than 10
This program allows the user to enter a number. JavaScript uses a conditional statement (if-else) to
check if the number is greater than 10. If it is greater, a message is displayed. Otherwise, another
message is shown.
3. Checking if Age is Adult or Minor
In this part, the user enters their age. JavaScript checks if the age is 18 or above. If the age is 18 or
above, the person is considered an adult. If the age is below 18, the person is considered a minor.
Conclusion
This project shows how JavaScript can be used to perform arithmetic operations and make
decisions using conditions. It helps beginners understand how JavaScript works in real-life
applications.