Lists With Arrays Quiz

Interactive Quiz ⋅ 10 Questions
By Martin Breuss

In this quiz, you’ll revisit Lists With Arrays. You’ll read items by position, see what .push() and .length give you, choose the loop that visits each item, and use loops to count, select, total, average and search, including what each pattern returns for an empty list.

Most questions show a short piece of JavaScript and ask what it prints when you run it. Others ask you to complete a function or pick the patterns that match a description.

The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer with a clipboard checks expedition supply crates riding a conveyor over index tags 0 to 4, past a FOR...OF scanner and a TOTAL scale, toward LENGTH and FIRST MATCH panels.

Course

Lists With Arrays

Write JavaScript functions that answer questions about a list: build an array, loop over its items, then count, total, select, and find what you need, with a clear answer even when the list is empty.

basics js