What, Why, and How Javascript Static Initialization Blocks?
ES2022 introduces a new feature called static initialization blocks. With static initialization blocks, we can initialize static variables and execute some code only once when the class is loaded.
https://www.youtube.com/watch?v=Hv-VldcP6gc&list=PLAA...
devsmitra.hashnode.dev5 min read