Below are three ways to use JavaScript when thinking about the Pythagorean theorem.

The Pythagorean Theorem

( a2 + b2 = c2 )

2 + 2 = 2

In this visual proof of the pythagorean theorem it is enough to simply "see" that "A2" and "B2" together add to "C2".

This animation gives required side lengths for right triangles as transcribed around a circle!