Can someone please test this for me?

void setup(){
  Serial.begin(9600);
  pinMode(ButtonPin,  INPUT);
  pinMode(ButtonPin1, INPUT);
  const int LEDPin1 = 2;
  const int LEDPin2 = 3;}

Why would you want to declare two constants mere nanoseconds before they go out of scope?