---
title: "Discussion on \"How JS is executed?\" | Hashnode"
description: "Discussion on \"How JS is executed?\". JavaScript executes code by creating execution contexts. These contexts include memory allocation and code execution phases for global and function scopes,"
url: "https://hashnode.com/posts/how-js-is-executed/6489b6c77185fba4fe450df0"
---

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

Discussion

# [How JS is executed?](https://aminablogs.hashnode.dev/how-js-is-executed?utm_source=hashnode&utm_medium=feed)

JavaScript executes code by creating execution contexts. These contexts include memory allocation and code execution phases for global and function scopes,

Jun 14, 2023 · 2 min read · aminablogs.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#execution-context](https://hashnode.com/tag/execution-context)
-   [#call-stack](https://hashnode.com/tag/call-stack)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Amina Arif](https://hashnode.com/@asquare354)

@asquare354

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

a front end developer interested in bringing designs to life

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
