---
title: "Discussion on \"Undefined vs. undeclared variables\" | Hashnode"
description: "Discussion on \"Undefined vs. undeclared variables\". It's important to distinguish between undefined and undeclared variables. Also, to is the one of most asked questions in the interview.\nFor Example\nlet message;\nconsole.log(message) // undefined\n\nUndefined variables are those variables which is been ..."
url: "https://hashnode.com/posts/undefined-vs-undeclared-variables/63c6e340e4a6cd11170f746c"
---

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

Discussion

# [Undefined vs. undeclared variables](https://abhishek7329.hashnode.dev/undefined-vs-undeclared-variables?utm_source=hashnode&utm_medium=feed)

It's important to distinguish between undefined and undeclared variables. Also, to is the one of most asked questions in the interview. For Example let message; console.log(message) // undefined Undefined variables are those variables which is been ...

Jan 17, 2023 · 1 min read · abhishek7329.hashnode.dev  
Read the article

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

## Written by

[Abhishek Sharma](https://hashnode.com/@abhishek7329)

@abhishek7329 · Bangalore

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

Software Engineer

I am a UI Developer. I do develop a webpage, software, and freelancing. Staring my career in blogging. Trying to learn &amp; create technical blogs. #iwritecode

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
