I know this question has a quick one line answer, but I can't wrap my head around how to make this arrow function self contained, using properties properly. It is just a function that counts how many times it has been called. Some help would be appreciated.
const countTimes = () => {
countTimes.count = countTimes.count + 1;
return countTimes.count;
};
countTimes.count = 0;