Inside the arrow function, index is 0 and element is "foo". The value of element is "foo".
Library: react
{names.map((element,index)=>{ console.log(βinside arrow functionβ) console.log(βindex is β+index+β element value is :β+element)})
or
<ul>
{todos.map(todo=>(
<li>{todo}</li>
))}