---
title: "Discussion on \"What, Why, and How Javascript Static Initialization Blocks?\" | Hashnode"
description: "Discussion on \"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.\nhttps://www.youtube.com/watch?v=Hv-VldcP6gc&list=PLAA..."
url: "https://hashnode.com/posts/what-why-and-how-javascript-static-initialization-blocks/63cbdaf20a811f9ef11c8df2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What, Why, and How Javascript Static Initialization Blocks?](https://devsmitra.hashnode.dev/what-why-and-how-javascript-static-initialization-blocks?utm_source=hashnode&utm_medium=feed)

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...

Jan 21, 2023 · 5 min read · devsmitra.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Rahul Sharma](https://hashnode.com/@DevsMitra)

@DevsMitra · Bangalore, India

  
[View profile](https://hashnode.com/@DevsMitra)

I'm a technology enthusiast who does web development.

I'm a technology enthusiast who does web development. Passionate to contribute to open-source projects and making cool products. ✔ I’m currently learning about Flutter ✔ Ask me anything you want, If I'm alive I will answer within seconds 😉 ✔ I Always try to learn something new &amp; then sleep till it stores in the brain 😎

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
