I want to know the purpose of using the EEPROM because I can't get it,
I mean I know that it can store values for a long time, but I just can't get the goal here




   

     #include<EEPROM.h>
    void setup()
    {
      Serial.begin(9600);
      EEPROM.write(0,4);
      int s=EEPROM.read(0);
      int f=10;
      Serial.print(s); 
        Serial.print(" ");
      Serial.print(10);
    
    }
    
    void loop()
    {
      
    
    }





for example, im using EEPROM to see the difference if I print a value inside variable s to the serial moniter using EEPROM and a normal value inside the variable f.
but I couldn't find the difference between both because when unplugging the power and turn it on again, both of them are printed.
hope you got the idea and I hope to see some feedback.
thank you..