---
title: "Discussion on \"Uninitialized JavaScript variables.\" | Hashnode"
description: "Discussion on \"Uninitialized JavaScript variables.\". Let's consider this example ;\nvar a;\nlet b;\nconsole.log('a = ' + a);\nconsole.log('b = ' + b)\n\nIn this example we have variables a and b defined with var and let but without the equal sign. This brings up an undefined output in the console meaning a v..."
url: "https://hashnode.com/posts/uninitialized-javascript-variables/650a055dad30b2430dfb4e59"
---

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

Discussion

# [Uninitialized JavaScript variables.](https://shaki.hashnode.dev/uninitialized-javascript-variables?utm_source=hashnode&utm_medium=feed)

Let's consider this example ; var a; let b; console.log('a = ' + a); console.log('b = ' + b) In this example we have variables a and b defined with var and let but without the equal sign. This brings up an undefined output in the console meaning a v...

Sep 19, 2023 · 1 min read · shaki.hashnode.dev  
Updated Sep 24, 2023  
Read the article

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

## Written by

[Shaki](https://hashnode.com/@shaki93)

@shaki93 · Nairobi, Kenya

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

React / Ruby on Rails Developer (Full-stack)

A Full-stack Developer based in Nairobi Kenya , with a focus on creating robust and user friendly web applications. With strong foundation in both front-end and backend development, I specialize in building responsive and scalable solutions that deliver exceptional user experiences.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
