I have been writing JavaScript code for the last 8 years. Through these years, I learnt a lot about JavaScript like code optimisation, code readability, cross-browser functionality, memory management, etc. Back in the day, I was a junior developer. I was doing my work without worrying about performance and memory…