Tonatiuh MoralesforCosas de hackers (pero nada de hackers)tmorales.hashnode.dev·Jun 7, 2021OCP: Open-Closed Principle, optimizing JavaScript codeHi 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 ...43 likes·475 readsJavaScriptAdd a thoughtful comment1 commentTop commentsFrancesco Ciulla·Jul 2, 2021Jul 2, 2021Thanks for mentioning me! 1·Reply