JavaScript Programs

These are some sample programs that show what can be done with JavaScript.
(requires a JavaScript-able browser, eg Netscape 2 or higher, or Internet Explorer 3 or higher - works best with Internet Explorer 4)
Quadratic Equation solver:
This will solve quadratic equations in the form: ax2 + bx + c = 0

x2 + x + = 0

The answer:
x =
x =

Note: I got the square root calculating bit of the program from Jon Weesner's page
Simple arithmetic:


Square root: (method by Sir Isaac Newton, JavaScript method by Jon Weesner)

Please feel free to look at my script by doing View-Source (IE) or View-Document Source (Netscape)
Home