var name = "The Window"; var object = { name: "My Object", getNameFunc: function () { return function () { return this.name; }; } }; console.log(object.getNameFunc()()); const arr = [1,2,3,4,5]; arr.splice(0,1,[6,7]) confirm(arr)