What is the output of the following code snippet? 

var arr=[3,2,,,5,7]; 
for(i=0;i<5;i++){
   console.log(arr[i]); 
}

3 2 5

3 2 5 7

3 2 undefined undefined 5

3 2 undefined 5 7

Verified Answer
Correct Option - c

To get all Infosys Certified JavaScript Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram