---
title: "Discussion on \"Javascript Hoisting\" | Hashnode"
description: "Discussion on \"Javascript Hoisting\". You may have encountered this in javascript when you console.log() var before declaring, instate of getting an error we get a strange value called undefined"
url: "https://hashnode.com/posts/javascript-hoisting/631a44205abe8613b3d32af3"
---

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

Discussion

# [Javascript Hoisting](https://mangeshthakre.hashnode.dev/javascript-hoisting?utm_source=hashnode&utm_medium=feed)

You may have encountered this in javascript when you console.log() var before declaring, instate of getting an error we get a strange value called undefined

Sep 8, 2022 · 3 min read · mangeshthakre.hashnode.dev  
Read the article

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

## Written by

[Mangesh Thakre](https://hashnode.com/@MangeshThakre)

@MangeshThakre · Nagpur Maharashtra India

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

web Developer

Hi there everyone I am a Full stack javascript Developer. Currently learning web development in Full Stack Javascript web Developer Bootcamp by Hitesh Choudhary sir at ineuron.ai portal. I have experience working with frontend technologies as well as backend technologies. You can check my portfolio and GitHub for projects that I have worked on.

## Responses 1

Markdown supported · ⌘↵ to post

[Prasanth KJ](https://hashnode.com/@PrasanthKJ)

[Sep 9, 2022](https://hashnode.com/posts/javascript-hoisting/631a44205abe8613b3d32af3/comment/631ac7b900230a29830ddc62)

Thanks for sharing. Nicely Explained.
