This video explains about jquery slideToggle function.
The slideToggle() function performs slide-down/slide-up based on the visibility state of selected elements.
when we use slideToggle function then it first check the elements visibility.
IF element is visible then internally jQuery will use slideUp function internally and that will hide all selected elements.
IF element is hideen then internally jQuery will use slideDown function internally and that will reveal all selected elements.
you should try these cases on your machine and also do try few crazy scenarios if you can.
If you get stuck or if you have any query then please do comment below and let me know.
I will try to reply you as soon as possible.