Use of toggle() method in JQuery?

What is the use of toggle() method in JQuery?

Toggle Method
The toggle() method toggles between hide() and show() for the selected elements.

This method checks the selected elements for visibility. show() is run if an element is hidden. hide() is run if an element is visible - This creates a toggle effect.

See examples here