This is a math quiz focusing on addition (for now). It generates two random numbers between 0 and 100 for the user to calculate the sum. It takes the user's answer as input in a provided field and returns feedback on whether their answer is correct. It also features a visual signal of the outcome by displaying feedback text for incorrect answers in red, while the text for the correct answer appears green. The colors green and red were used because it's more intuitive for users, as most websites use these colors to signal "error" or "success". The input field also checks for user input validity and throws an error, which shows a bold, large, red error-message to the user. The error message clearly states what the user did wrong and how they can fix it.

Built With

Share this project:

Updates