---
title: "Discussion on \"Hoisting in JavaScript 🔥(variables & functions)\" | Hashnode"
description: "Discussion on \"Hoisting in JavaScript 🔥(variables & functions)\". Hoisting in JavaScript is the most famous Interview Question. And it is also one of the most misunderstood concepts in JS.\nLet's start with a very simple example.\nvar x= 7;\nfunction getName(){\n    console.log(\"Let's Understand Hoisting in JS\")\n    }\n..."
url: "https://hashnode.com/posts/hoisting-in-javascript-variables-functions/63dd52cf021d4588ade02a98"
---

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

Discussion

# [Hoisting in JavaScript 🔥(variables & functions)](https://nishant-ranjan.hashnode.dev/hoisting-in-javascript-variables-functions?utm_source=hashnode&utm_medium=feed)

Hoisting in JavaScript is the most famous Interview Question. And it is also one of the most misunderstood concepts in JS. Let's start with a very simple example. var x= 7; function getName(){ console.log("Let's Understand Hoisting in JS") } ...

Feb 3, 2023 · 3 min read · nishant-ranjan.hashnode.dev  
Read the article

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

## Written by

[Nishant Ranjan](https://hashnode.com/@nishu2811)

@nishu2811

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
