Is there a JavaScript function that reduces a fraction

say we have fraction 2/4, it can be reduced to 1/2.

Is there a JavaScript function that can do the reducing?

113 thoughts on “Is there a JavaScript function that reduces a fraction”

Leave a Comment