This file has been truncated. show original
Note: We didn't provide live editable versions of these tasks because of the risk of creating infinite loops and crashing the assessment page.
## Task 1
In our first looping task we want you start by creating a simple `for()` loop that goes through all the items in the provided `myArray` and prints them out on the screen inside list items, which are appended to the provided `list`.
Note that using an array method like. `forEach()` would also be acceptable, as would a different loop. structure such as `while()`.
The finished code should look something like this:
let myArray = ['tomatoes', 'chick peas', 'onions', 'rice', 'black beans'];
let list = document.createElement('ul');