Complete the code to loop over the collection and render each item.
<ul>
{Astro.[1](items) => (
<li>{item.title}</li>
)}
</ul>The map method is used to loop over each item in the collection and render it.
Complete the code to access the collection item property inside the loop.
<ul>
{items.map(item => (
<li>{item.[1]</li>
))}
</ul>The property title is commonly used to display the main text of each item.
Fix the error in the code to correctly render the collection items.
<ul>
{items.[1](item => (
<li>{item.title}</li>
))}
</ul>The map method returns a new array of elements to render. forEach does not return anything, so it won't render.
Fill both blanks to render only items with a title longer than 5 characters.
<ul>
{items.[1](item => item.title.length [2] 5).map(item => (
<li>{item.title}</li>
))}
</ul>Use filter to select items where the title length is greater than 5.
Fill all three blanks to render uppercase titles of items with id less than 10.
<ul>
{items.filter(item => item.id [1] 10).map(item => (
<li>{item.title.[2]().[3]()}</li>
))}
</ul>Filter items with id less than 10, then convert title to uppercase and trim whitespace.
