OCP: Open-Closed Principle, optimizing JavaScript code
Hi all!In my previous post, I described how to put in place a multi language feature in a static website. But, in the toggle lang function, I was not convinced at all, so I decided to optimize the code. The code part that I was not convinced is to ...


