You are examining a JavaScript program and find a series of…

You are examining a JavaScript program and find a series of nested if statements, each of which includes a test condition that verifies that a request object had a completed response and a successful connection, followed by the instantiation of a new request object. Once the inner if condition is verified, the program calls the open() and send() methods on each successful request object in turn. This situation _____.

You are writing an anonymous JavaScript function that should…

You are writing an anonymous JavaScript function that should be run when the autoPlay element is clicked. What statement(s) should you place in the blank if you would like the advanceOne function to be called immediately and then called repeatedly at two-second intervals after that?let myAutoComm;autoPlay.onclick = function() {_____}