'How does this functions are working between them?

I'm not aware of how the functions are working, first inside my eventListener I have a fucntion () with no paramater which is calling my function showPerson that has been declared, and it has the paramater person which I would like to know, why is it called in my funcion ? and then It's assigned to my variable item, I'm under the impression that person it's just been there in order to replace whatever information is selected from my hardcode variable currentItem

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source