What does indexOf() do?

What does indexOf() do?

Hey, can sombody explain the indexOf() function to me? I'm not sure what it does but I can't find any documentation on it.