Lava Example - 61 | Rock Community

Lava Example - 19


Prompt

You have a {{ Containers }} array consisting of the (6) container objects from the slides.

Build a for loop to get information about each container.

Each of the objects has the following properties:
    Color Weight Destination
Initial Code
{{ Containers }}
Solution Lava
<ul>
    {% for item in Containers %}
        <li>{{ item.Color }} container weighing {{ item.Weight }}</li>
    {% endfor %}
</ul>