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

< Learning‎ | WebLiteracyStandard‎ | Building‎ | CodingScripting
Revision as of 11:57, 18 July 2013 by Dajbelshaw (talk | contribs) (Created page with "<strong>Composing working loops and arrays</strong> Examples: <ul> <li>Using JavaScript in an HTML page to create an array containing the items “apple”, “orange” and ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.