Which of these can be considered as output?

What a function displays in the console or what it returnsThe operations a function carries out

What a function displays in the console or what it returns.