What does “let that = this” mean in Javascript/Typescript?

For example, let person = { name:"bill", speak:function(){ console.log("hi i am "+this.name) } } Functions has something called a context. A context is the object the function is being called on. if you were to do person.speak(), it will be called on the object that was defined. The variable person is the context. So when …