i want to shortened my sketch

int red = 5;
int btn = 4;
int btnState = 0;
void setup() {
pinMode(red, OUTPUT);// put your setup code here, to run once:
pinMode(btn, INPUT);
}

void loop() {
btnState = digitalRead(btn);// put your main code here, to run repeatedly:

if (btnState ==LOW){
digitalWrite(red, HIGH);
delay(300);
digitalWrite(red,LOW);
delay(300);
digitalWrite(red,HIGH);
delay(300);
}else{ digitalWrite(red,LOW);

}
}

these codes works, it pulse 2 times in 1 push of button. my problem is that its too long to write, i want this sketch to be shortened. how will gonna do that?

2.ino (421 Bytes)

Is this a web editor "CREATE" related issue ?