menu
home
Home
search
Search
people
About Us
exit_to_app
Login
home
Home
search
Search
people
About Us
exit_to_app
Login
Practicing for JavaScript Loops of Web Design & Development
Questions 1 of 10
Q. 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);
}
}
Prints “Empty Arrayâ€
Prints 0 to the length of the array
Prints the numbers in the array in order
Prints the numbers in the array in the reverse order
Submit
lock
Login
person
Signup
Email
Password
Name
Email
Password
Confirm Password