Lesson 3.2 Working with arrays and loops
xAPI runtime Launch: Web / LTI / cmi5
Interactive coding exercise
Use JavaScript arrays and for loops to render a dynamic list of items. Your changes run live on the right.
This is the native web player. When launched via SCORM, cmi5 or LTI, a launchId will be used to restore your attempt.
Module progress · 35%
Est. 12 min left · Autosaving every 30 seconds

Lesson content

Overview, transcript and your personal notes for this lesson.

In this lesson, you’ll learn how to use arrays to store multiple values and how to loop over them using for and for...of. You’ll build a simple “to-do list” style component using plain JavaScript and the DOM.

When you click Start lesson, the player will load your last saved state (if any) and stream xAPI events such as initialized, experienced, answered and completed to the LRS.

Transcript (excerpt)

“Welcome back. In this module, we’ll work with arrays and loops. Arrays let you store a list of values under a single variable, and loops let you repeat logic without writing the same code over and over again…”

(Full transcript continues here.)
Your notes