While processing the array , I need to keep a delay or pause for 1.5 seconds after each element.

I tried using `$.delay(1500);` 

and also tried initially using `setInterval`, but it threw an error as `setInterVal` is not defined.

Could please let me know how to resolve this error.

```
function doPoll(){

    $.each( symbols, function( index, value ){
      setInterVal(function() {
          poll(value);
      }, 1500);
    });
   setTimeout(doPoll,3000);
}

// This is my complete code 

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
        </title>
        <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script type="text/javascript">
            var symbols = [ "AAA","BBB"];

            $(document).ready(function () {

              doPoll();

            }
            );

            function doPoll(){
               $.each( symbols, function( index, value ){
                  poll(value);
            $.delay(1500);
               });
              setTimeout(doPoll,4000);
            }

            function poll(value)
            {
                alert('poll'+value);
            }
        </script>
    </head>
    <body>
    </body>
</html>

```

Updated question with pollundefined error (variable i is undefined .)

```
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
        </title>
        <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script type="text/javascript">
            var symbols = [ "AAA","BBB"];

            $(document).ready(function () {

              doPoll();

            }
            );

var i = 0;

function doPoll() {
   poll(symbols[i]);
   i++;
   if (i < symbols.length)
       setTimeout(doPoll, 3000);
}

setTimeout(doPoll, 3000);

            function poll(value)
            {
                alert('poll'+value);
            }
        </script>
    </head>
    <body>
    </body>
</html>

```