Euclidean Algorithm

This 1 kilobyte page is mostly provided as a template for learners of JavaScript to edit and play with. Press ctrl+s to save, then edit with a text editor designed for plain, unformatted text. Or press ctrl+u if you only want to see the source code. Or use it to actually find the GCD of two numbers. The Euclidean algorithm is a fairly efficient way to do so.