JavaScript Questions & Answers – Loops in JavaScript
This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Loops in JavaScript”. 1. What will be the output of the following JavaScript code? function printArray(a) { var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else { do { console.log(a[i]); } while (++i < len); } } a) … Read more