let f;
if(true) {
  let i=1; 

  f = () => {
      console.log(i);
  }

}

f();

Footer section 1

Content for the first footer section.

Footer section 2

Content for the second footer section.

Footer section 3

Content for the third footer section.