A()直下のthis.nを汚さないようにA()の中に関数を定義したいんですけど
こう書いたら汚れてしまいます何でですか?

function A() {
this.n = 1;
console.log('A', this.n);

function B() {
this.n = 2;
console.log('B', this.n);
}
B();
console.log('A', this.n);

const C = () => {
this.n = 3;
console.log('C', this.n);
};
C();
console.log('A', this.n);
}
A();