Sebastian Patten - 7 months ago 40

Javascript Question

On my calculator when I do 18/7 I get 2.5714285714285714285714285714286.

From my super limited Math skills 2 is the quotient and .5714285714285714285714285714286 is the remainder.

How can I model this in JavaScript?

Thanks!

Source (Stackoverflow)