Learning/WebLiteracyStandard/Building/CodingScripting/loops-and-arrays

From MozillaWiki
Jump to navigation Jump to search

Composing working loops and arrays

Examples:

  • Using JavaScript in an HTML page to create an array containing the items “apple”, “orange” and “banana.” Then create a for loop that displays the three items on the web page, each on a separate line.