---
title: "Comment by Neutron on \"Variables, Data Types, Operators in JavaScript\" | Hashnode"
description: "Slight correction : let and const declarations are also hoisted EXCEPT that they do not have a default initial value(like undefined in case of var, and that onl"
url: "https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c/comment/649838ddee8fae5a272da328"
---

[Discussion](https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c)

Comment [Variables, Data Types, Operators in JavaScript](https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c)

[Neutron](https://hashnode.com/@Neutron768)

[Jun 25, 2023](https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c/comment/649838ddee8fae5a272da328)

Slight correction : `let` and `const` declarations are also hoisted EXCEPT that they do not have a default initial value(like `undefined` in case of var, and that only the variable can be accessed before declaring it and not its value, which results in the Reference Error. Amazing blog otherwise!

[Shalini Muskula](https://hashnode.com/@Shalini469717)

[Jun 25, 2023](https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c/comment/649838ddee8fae5a272da328#reply-64983ce61ded8e6dcd3591ab)

I thought I wrote it in the blog just had in the back of my mind..dint write at last 🤦‍♀️

[Neutron](https://hashnode.com/@Neutron768)

[Jun 25, 2023](https://hashnode.com/posts/variables-data-types-operators-in-javascript/642c9dde07232c4febf2ff7c/comment/649838ddee8fae5a272da328#reply-649842e35244606d9b5fc783)

[Shalini Muskula](https://hashnode.com/@Shalini469717) np!
