How And When Use Javascript Settimeout And Setinterval Functions

How And When Use Javascript Settimeout And Setinterval Functions