---
title: "Discussion on \"Importance of Variable declaration before use in Javascript\" | Hashnode"
description: "Discussion on \"Importance of Variable declaration before use in Javascript\". I never really understood how important the basics/background/foundation of my development career is until I started missing or making simple errors that one would think are just trivial. These errors end up consuming a lot of time debugging because ..."
url: "https://hashnode.com/posts/importance-of-variable-declaration-before-use-in-javascript/5ffeaabcb00f7510ee958e0c"
---

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

Discussion

# [Importance of Variable declaration before use in Javascript](https://cyruscodes.hashnode.dev/importance-of-variable-declaration-before-use-in-javascript?utm_source=hashnode&utm_medium=feed)

I never really understood how important the basics/background/foundation of my development career is until I started missing or making simple errors that one would think are just trivial. These errors end up consuming a lot of time debugging because ...

Jan 13, 2021 · 10 min read · cyruscodes.hashnode.dev  
Updated Feb 2, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[cyrusCodes](https://hashnode.com/@cyrusCodes)

@cyrusCodes

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

👋 Hello, I'm Cyrus! 🖥️ Web developer ✍️ Tech Blogger 🖱️ UI / UX Designer.

👋 Hello, I'm Cyrus! 🖥️ A web developer, ✍️ Tech Blogger, and 🖱️ UI / UX designer. I have a great passion for good designs, art, and insightful learning materials ranging from books, videos, and blog articles. When not reading I’m developing beautiful, and responsive websites and web apps using javascript and related technologies.

## Responses 1

Markdown supported · ⌘↵ to post

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Jan 13, 2021](https://hashnode.com/posts/importance-of-variable-declaration-before-use-in-javascript/5ffeaabcb00f7510ee958e0c/comment/5ffec4ffc162d710c9b13d56)

I totally agree with the points you've raised here. I never really looked at it in this way.

Thanks for sharing.

[cyrusCodes](https://hashnode.com/@cyrusCodes)

[Jan 13, 2021](https://hashnode.com/posts/importance-of-variable-declaration-before-use-in-javascript/5ffeaabcb00f7510ee958e0c/comment/5ffec4ffc162d710c9b13d56#reply-5fff0224c162d710c9b14157)

Thanks for the response. Very much appreciated.
