---
title: "Discussion on \"Understanding Execution Context, Thread, and Functions in Javascript\" | Hashnode"
description: "Discussion on \"Understanding Execution Context, Thread, and Functions in Javascript\". In today's post, I am going to write about how javascript works. We will throw some light on terminologies like Execution context, function level execution context, function invoking, and threads.  \nDo you know what happens behind the scene when you ..."
url: "https://hashnode.com/posts/understanding-execution-context-thread-and-functions-in-javascript/5f8f2ad81a610045ce582086"
---

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

Discussion

# [Understanding Execution Context, Thread, and Functions in Javascript](https://deepakhq.hashnode.dev/understanding-execution-context-thread-and-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

In today's post, I am going to write about how javascript works. We will throw some light on terminologies like Execution context, function level execution context, function invoking, and threads. Do you know what happens behind the scene when you ...

Oct 20, 2020 · 3 min read · deepakhq.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hashnodecommunity](https://hashnode.com/tag/hashnodecommunity)

## Written by

[Deepak Kumar](https://hashnode.com/@deepak_dev)

@deepak\_dev · New Delhi, India

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

Software Development Engineer @ 91Wheels | Mentoring in Javascript & ReactJS

## Responses 1

Markdown supported · ⌘↵ to post

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Oct 23, 2020](https://hashnode.com/posts/understanding-execution-context-thread-and-functions-in-javascript/5f8f2ad81a610045ce582086/comment/5f92a85ec626a0545fb620c9)

Nice one 🤠.... Variable P will also be assigned after EC is created for call y().

If this is correct then I've learnt from you..

[Deepak Kumar](https://hashnode.com/@deepak_dev)

[Oct 23, 2020](https://hashnode.com/posts/understanding-execution-context-thread-and-functions-in-javascript/5f8f2ad81a610045ce582086/comment/5f92a85ec626a0545fb620c9#reply-5f92ab3c6aa1ed54804bb8da)

Yes, the scope of p will be limited to function `y` only.
