A simple web application that generates a multiplication table based on user input. The main diagonal of the table is highlighted in red.
- Demo
- Requirements
- Installation
- Usage
- Features
- Technologies Used
- Project Structure
- Challenges and Learnings
- Future Improvements
- Contact
- License
Multiplication Table in action
- A modern web browser (Chrome, Firefox, Edge, Safari)
To run the project locally, follow these steps:
# Clone the repository
git clone https://github.com/Nada-TB-beginner-projects/create_multiplication_table_JS.git
# Navigate to the project directory
cd repo-name
-
Open the Web Application:
- Open the
index.html
file in your web browser
- Open the
-
Enter a Number:
- When prompted, enter a number to generate the multiplication table.
-
View the Table:
- The multiplication table will be displayed with the main diagonal highlighted in red.
- Generates a multiplication table based on user input.
- Highlights the main diagonal of the table in red.
- HTML
- CSS
- JavaScript
Outline of the project directory:
table-de-multiplication/
├── index.html # Main HTML file
├── tableMultiplication.js # JavaScript functionality
└── README.md # Project documentation
-
Dynamic Table Generation:
- Challenge: Creating a multiplication table dynamically based on user input.
- Solution: Used nested loops in JavaScript to generate the table and manipulate the DOM to display it.
-
Diagonal Highlighting:
- Challenge: Highlighting the main diagonal of the table.
- Solution: Added conditional logic in the loop to apply a specific style to diagonal elements.
- Add input validation to ensure the user enters a valid number.
- Improve the styling and user interface.
- Add a feature to download the table as a CSV file.
For any questions or feedback, you can reach me at:
- GitHub: Nada-TB