What is an index fund and how does it work in simple terms?

In simple terms, what is an index fund?

What mistakes do people make when using them as well?