What does animal[0] do?

Yes you explained it very well. Although I want to add that you don’t even need that ? true : false ternary expression because a condition always will evaluate to either true or false.

So writing:

const startsWithS = animals.findIndex(a => a[0] === 's');

is perfectly fine.