Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Explain in plain English, using a single sentence, the purpose of the following function. function whatDoIDoFunction (x, arr) { var i = 0; for(i=0; i...

Explain in plain English, using a single sentence, the purpose of the following function.

function whatDoIDoFunction (x, arr) {  

 var i = 0; 

  for(i=0; i < arr.length; i++){ 

   if(arr[i] == x)

    return i;   

 } 

   return -1;

}

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question