Sobes.tech
Junior — Senior

Understanding the context of this in an object method

livecode

Task condition

It is necessary to fix the code so that when run, the console outputs the property value equal to 1 from the given object.

const obj = {
    a: 1,
    say() {
        return () => {
            console.log(this.a);
        }
    }
}

obj.say()();