---
title: "Discussion on \"How does JavaScript Work?\" | Hashnode"
description: "Discussion on \"How does JavaScript Work?\". Introduction\nHave you ever wondered why JavaScript is considered such a weird language? Why does it behave unexpectedly sometimes? How is it possible to call a function even before declaring it? What is a closure or hoisting? Why setTimeout() functio..."
url: "https://hashnode.com/posts/how-does-javascript-work/62043164b6c216065a35c2ca"
---

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

Discussion

# [How does JavaScript Work?](https://blog.rishupatel.com/how-does-javascript-work?utm_source=hashnode&utm_medium=feed)

Introduction Have you ever wondered why JavaScript is considered such a weird language? Why does it behave unexpectedly sometimes? How is it possible to call a function even before declaring it? What is a closure or hoisting? Why setTimeout() functio...

Feb 9, 2022 · 7 min read · blog.rishupatel.com  
Read the article

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

## Written by

[Rishu Patel](https://hashnode.com/@iamrishupatel)

@iamrishupatel · India

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

Software Engineer @Pi42

Hi, I am Rishu, a self-taught React developer from India. I'm interested in science, business, space, superheroes, and everything in between.

## Responses 1

Markdown supported · ⌘↵ to post

[Arpan Srivastava](https://hashnode.com/@theselftaught-dev)

[Feb 10, 2022](https://hashnode.com/posts/how-does-javascript-work/62043164b6c216065a35c2ca/comment/6205331eb6c216065a35dee6)

Good job bro 👏

[Rishu Patel](https://hashnode.com/@iamrishupatel)

[Feb 10, 2022](https://hashnode.com/posts/how-does-javascript-work/62043164b6c216065a35c2ca/comment/6205331eb6c216065a35dee6#reply-620534edb6c216065a35df0e)

Thank you Arpan 😄
