Tiny question google can't really answer

PaulS:
data is just a name. You can change it to whatever you like, as long as you change EVERY occurrence.

doggo = Serial.read();

Serial.println(data);



doggo isn't defined.



char doggo = 0;
void setup() {
servoone.attach(6);
Serial.begin(9600);

}

void loop() {
if(Serial.available() > 0);
{
doggo = Serial.read();
 Serial.println(doggo );
 if(doggo == '1');



This snippet would compile, if it were complete.

Ohhhhhhh now I understand!! I didn't realize that data was defined before the setup whoops, thanks so much for explaining guys, really appreciate it