Hi, I have seen people bind 'this' in the constructor like this.get=this.get.bind('this'). But you don't do that and solution gets accepted either way. So can you explain what it does ?
I’ve only recently learned js (still learning) and I’m reluctant to use classes even though I came from a Java background. I almost always go with arrow functions but should I go with classes more?
I solved this one without using the set timeout callback, i just enter both the value and a expiration in an object as value. I do this live as well and have a periodic cleanup of expired cache items