function gives equal value before and after changing a variable

let g=0;
let a={};
let f=()=>{
    if(g===1){a.h=2;};
    g++;
    return a;}

console.log(f()===f());

the output comes true. Since after first function call to f() we changed a by adding h , it still shows them equal. can anyone explain why?