Lesson "function 2"
let person = {name: "John",
age : [1,2,[[5,6,7,8]],3,4],
func : () => console.log("function inside object"),
};
person.func();
b = person.func;
b();
student = {name : "peter", funct: undefined};
student.funct = person.func;
student.funct();
person.func = ()=> {console.log("different function")};
person.func();
student.funct();INFO