What does function() do?

Okay. So I found out a similar issue solved by someone in FCC forum. Let me share the link.