In this Javascript tutorial, we create a program that solves quadratic equations using the Quadratic Formula. The user is presented with a HTML form to input the coefficients a, b and c of the equation ax² + bx + c = 0. Our script also validates the input.
All coding is done from within a HTML file, so it should be able to run in any modern browser!
CODE
USEFUL LINKS
Purple Math The Quadratic Formula Explained:
w3schools JavaScript Form Validation:
FIND US ON .