Fraction.prototype.inverse

Returns the inverse of the fraction.

Syntax

inverse()

Return value

A fraction.

Examples

Fraction(3, 4).inverse()
$\frac{4}{3}$