---
title: "Discussion on \"Why does Console return “undefined” on executing the log method ?\" | Hashnode"
description: "Discussion on \"Why does Console return “undefined” on executing the log method ?\". You've probably noticed some strange behavior if you've ever used console.log() in the browser. that you get \"undefined\" after printing the expected value to the console.\n\nHave you ever wondered why the console displays \"undefined\" as a result? Allow..."
url: "https://hashnode.com/posts/why-does-console-return-undefined-on-executing-the-log-method/63ee5e06f519501c6bc788de"
---

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

Discussion

# [Why does Console return “undefined” on executing the log method ?](https://amankumr.hashnode.dev/why-does-console-return-undefined-on-executing-the-log-method?utm_source=hashnode&utm_medium=feed)

You've probably noticed some strange behavior if you've ever used console.log() in the browser. that you get "undefined" after printing the expected value to the console. Have you ever wondered why the console displays "undefined" as a result? Allow...

Feb 16, 2023 · 1 min read · amankumr.hashnode.dev  
Read the article

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

## Written by

[Aman kumar](https://hashnode.com/@Kr794)

@Kr794

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

Software Developer @Accenture | Neog undergrad

Software Developer @Accenture | NeoG Undergrad | Frontend developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
