- This project is a factorial calculator built using HTML, CSS, and JavaScript. It calculates the factorial of a non-negative integer entered by the user.
- Calculates factorials of non-negative integers.
- Validates user input to ensure it's a non-negative integer.
- Provides informative error messages for invalid input.
- Clone the repository: git clone https://github.com/CODING-ALPHA/Factorial-Calculator .
- Open the index.html file in a web browser.
- Enter a non-negative integer in the input field.
- Click the "Calculate" button.
- If the input is valid, the calculated factorial will be displayed below the input field.
- If the input is invalid, an error message will be displayed below the input field.
- index.html: The main HTML file containing the user interface and embedding JavaScript code.
- style.css: The CSS file that styles the calculator's appearance.
- script.js: The JavaScript file containing the logic for calculating factorials and validating user input.
- HTML: Hypertext Markup Language, used for creating the structure and content of the web page.
- CSS: Cascading Style Sheets, used for styling the appearance of the web page.
- JavaScript: A scripting language used to add interactivity and functionality to the web page.
- The calculator validates user input to ensure it's a non-negative integer. If the input is invalid, an error message will be displayed.