Home / MCQ Bank / Computer
Computer Basic And Variables

Consider the following code snippet 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 ) ; } } What does the above code result?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • Prints the numbers in the array in order

Related Computer Questions

Which of the following css propery defines a relationship between bound elements(s) and some code or content? Ctrl + L Shortcut key is used in Microsoft Word to____________? First component of the list can be accessed by ______ In MS Access, Field Value may contain In R, which package is commonly used for creating and formatting tables in LaTeX?