How do DDRD & PORTD work in this program.

I know that DDRD sets the output pins and PORTD controls the output signals, but I am unable to figure out what the commands in the following commands do.

Can someone explain what is happening in this program

void setup(){
              DDRD |= B11111100;
             
             PORTD &= B00000011;
             
              PORTD |= B10101000;
}
void loop(){

                   PORTD ^= B11111100;

                 delay(300);
}

https://www.arduino.cc/en/Reference/PortManipulation

https://www.arduino.cc/reference/en/
Scroll down close to the bottom under Structure for bitwise operators.

I was unable to understand what DDRD |= B11111100; notation means

Is it the same as DDRD = DDRD | B11111100; ?

Delta_G:
Arduino - PortManipulation

Arduino Reference - Arduino Reference
Scroll down close to the bottom under Structure for bitwise operators.

From the link I just gave you that you just ignored.

https://www.arduino.cc/reference/en/language/structure/compound-operators/compoundbitwiseor/

If you're not going to at least look at the things you're given then why should anyone waste their time trying to help you? You could at least click the links and take a cursory look.

I am extremely sorry, I just looked at the individual bitwise operator pages. Thanks a lot btw.

Delta_G:
From the link I just gave you that you just ignored.

|= - Arduino Reference

If you're not going to at least look at the things you're given then why should anyone waste their time trying to help you? You could at least click the links and take a cursory look.