Showing/hiding unlimited number of divs based on time : I have this simple JavaScript yet:

    $("body").children("div").each( function( ) {
      $(this).hide();
      
    });

The goal is:
 - hide every direct children divs (completed :)
 - show first direct children div
 - hide that first div, show second 
 - hide that second div, show third etc.
 - no matter how many divs there is it
 - time for how long div stays displayed bassed on variable


How can I do that?