Project 6- OUTPUT

Hi everyone!
I'm just a newbie trying to understand how this all works and I was simply wondering why pin 8 isn't defined as an output in the code in project 6 for example ? (with pinMode function).
When I compare it to project 4 for instance (which I found similar in certain aspects), we see that pin 9, 10 and 11 are defined as OUTPUTs... how come?
Can someone provide a clear explanation of when to put something as OUTPUT versus not.

Thank you so much! :slight_smile:

In chapter 6
tone(8, pitch ,20)

the tone() function is taking care of making pin 8 as OUTPUT.

Handled in the library.