.map() function in JS used on a CONST variable
How can listItems be a const? The array elements are appended as we loop through ? Can someone explain what is happening here please.
const listItems = products.map(product =>
<li key={product.id}>
{product.title}
</li>
);