hi, could someone help me to understand why this is not working, please. Or share documentation to understand this.
```
var functions = {
myFunction1: function () {
console.log("func 1 log")
},
functionsDICT: {
func1: this.myFunction1,
func2: function () {
console.log("func 2 log")
}
},
main: function (fn) {
this.functionsDICT["func2"]();
this.functionsDICT["func1"]();
}
}
functions.main("func1");
```
```
var functions = {
myFunction1: function () {
console.log("func 1 log")
},
functionsDICT: {
func1: this.myFunction1,
func2: function () {
console.log("func 2 log")
}
},
main: function (fn) {
this.functionsDICT["func2"]();
this.functionsDICT["func1"]();
}
}
functions.main("func1");
```