Canvas Collisions

Detecting collision between 2 circles in canvas using pythagorus' theorem and JS