I am trying to understand how "this" keyword works and trying to increase the count variable using a function. But If i use let to declare count, count does not increase , but if i use var to declare count it works. I don't know why is this happening.
let count = 0;
function increaseCounter() {
this.count++;
};
increaseCounter()
console.log(count)