Fix this Arduino code

Your mission is to fix and complete the code provided below. The code is designed to work with this circuit.  The circuit works and does not need to be fixed.

Here’s the code – it has errors and is incomplete.  Once you have fixed it, the program will cause the LEDs to light up one at a time after the button has been pressed.  When the button has not been pressed, all LEDs will be OFF.

Copy/paste this into a NEW Tinkercad file and make your corrections.  Follow the instructions in the comments.  Turn in the share link on Canvas when you are done.

int red=10;
int yellow = 12;
int green = 11;
int button = 2

void setup()
{
pinMode(red, OUTPUT);
pinMode (yellow, OUTPUT);
pinMode (green, OUTPUT);
Serial.begin(9600);
}

void loop()
//the loop will turn on the LEDs one at time when the button is pressed
if (digitalRead (switch)==LOW){

Serial.println (“button pressed”);
digitalrite(red, HIGH);
delay(500);
digitalwrite(red, LOW);
delay(500);
digitalWrite (yellow, low);
delay (500);
digitalWrite (yellow, LOW);
delay (500);
digitalWrite (GREEN, HIGH);
delay (500)
digitalWrite (green, LOW);
delay (500);
}
void loop{
else{
//add the code here to that will make all the LEDs off when the button is not pressed
}
}