---
title: "Discussion on \"Why does Chrome console.log always append a line saying 'undefined'?\" | Hashnode"
description: "Discussion on \"Why does Chrome console.log always append a line saying 'undefined'?\". It talks about why Chrome console prints undefined for certain expressions!"
url: "https://hashnode.com/posts/why-does-chrome-consolelog-always-append-a-line-saying-undefined/63eb8e07d56e582749ee9594"
---

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

Discussion

# [Why does Chrome console.log always append a line saying 'undefined'?](https://rajashreeparhi.hashnode.dev/why-does-chrome-consolelog-always-append-a-line-saying-undefined?utm_source=hashnode&utm_medium=feed)

It talks about why Chrome console prints undefined for certain expressions!

Feb 14, 2023 · 2 min read · rajashreeparhi.hashnode.dev  
Updated Feb 16, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#console](https://hashnode.com/tag/console)
-   [#repl](https://hashnode.com/tag/repl)
-   [#chrome-cj73auo4o0012c3wted1yb7a1](https://hashnode.com/tag/chrome-cj73auo4o0012c3wted1yb7a1)

## Written by

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

@rajashreeparhi · India

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

I am a Software Engineer

I write what I learn along my coding journey!

## Responses 2

Markdown supported · ⌘↵ to post

[Saqib](https://hashnode.com/@iamsaqib24)

[Feb 14, 2023](https://hashnode.com/posts/why-does-chrome-consolelog-always-append-a-line-saying-undefined/63eb8e07d56e582749ee9594/comment/63ebf6982059e345a6cc200f)

Nice research and thanks for sharing references as well. 👏

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 15, 2023](https://hashnode.com/posts/why-does-chrome-consolelog-always-append-a-line-saying-undefined/63eb8e07d56e582749ee9594/comment/63ebf6982059e345a6cc200f#reply-63ed17383fa8ff4ff0097b8b)

Thanks!

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Feb 14, 2023](https://hashnode.com/posts/why-does-chrome-consolelog-always-append-a-line-saying-undefined/63eb8e07d56e582749ee9594/comment/63ebb5ce2059e345a6cc18f1)

Great explanation. Also idea of including references in the end was cool.

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 14, 2023](https://hashnode.com/posts/why-does-chrome-consolelog-always-append-a-line-saying-undefined/63eb8e07d56e582749ee9594/comment/63ebb5ce2059e345a6cc18f1#reply-63ebc415344b6345d699b9ff)

Thanks! :)
