Skip to content

Instantly share code, notes, and snippets.

@jafow
jafow / euclidsAlgo.md
Last active October 11, 2015 14:43
Euclid's Algorithm on JavaScript

####What's the greatest common divisor of two numbers?

'use strict';

let euclid = (int1, int2) {
  
  if(int1 === int2)
    return int1;

 if(int1 > int2)