---
title: "Discussion on \"Why do we get undefined in the browser console?\" | Hashnode"
description: "Discussion on \"Why do we get undefined in the browser console?\". As developers, we all are familiar with browser console. It's a Command Line Interface (CLI) built into the web browser. It helps in debugging our code without any hassle.\nUsually, the browser console returns the same results as in other environment ..."
url: "https://hashnode.com/posts/why-do-we-get-undefined-in-the-browser-console/63f555a9c9e89d1d7a019c92"
---

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

Discussion

# [Why do we get undefined in the browser console?](https://prachiblogs.hashnode.dev/why-do-we-get-undefined-in-the-browser-console?utm_source=hashnode&utm_medium=feed)

As developers, we all are familiar with browser console. It's a Command Line Interface (CLI) built into the web browser. It helps in debugging our code without any hassle. Usually, the browser console returns the same results as in other environment ...

Feb 21, 2023 · 3 min read · prachiblogs.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#undefined](https://hashnode.com/tag/undefined)
-   [#consolelog](https://hashnode.com/tag/consolelog)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Prachi Sahu](https://hashnode.com/@Prachi08)

@Prachi08

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

Frontend Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Vivek Prasad](https://hashnode.com/@vivekprasad)

[Feb 22, 2023](https://hashnode.com/posts/why-do-we-get-undefined-in-the-browser-console/63f555a9c9e89d1d7a019c92/comment/63f5b8e775350fc1ff691f21)

Easily explained. Good read

[Prachi Sahu](https://hashnode.com/@Prachi08)

[Apr 23, 2023](https://hashnode.com/posts/why-do-we-get-undefined-in-the-browser-console/63f555a9c9e89d1d7a019c92/comment/63f5b8e775350fc1ff691f21#reply-644500acea9c083a86dccf81)

Thankyou for reading Vivek...
