Which of the following is the correct output for the following JavaScript code:
functiondisplayArray(x)
{
varlen=x.length,i=0;
if(len==0)
console.log("Empty Array");
else
{
do
{
console.log(x[i]);
} while (++i<len);
}
}
a) Prints the numbers in the array in the reverse order
b) Prints the numbers in the array in specific order
c) Prints "Empty Array"
d) Prints 0 to the length of the array