---
title: "Comment by Jagrut Sharma on \"Why does console.log() return 'undefined'?\" | Hashnode"
description: "Nice explanation, especially the part about how code is executing in repl step by step. 👍"
url: "https://hashnode.com/posts/why-does-consolelog-return-undefined/63eca468594e01fde25fb859/comment/63ecd1247cedde50200b7900"
---

[Discussion](https://hashnode.com/posts/why-does-consolelog-return-undefined/63eca468594e01fde25fb859)

Comment [Why does console.log() return 'undefined'?](https://hashnode.com/posts/why-does-consolelog-return-undefined/63eca468594e01fde25fb859)

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

[Feb 15, 2023](https://hashnode.com/posts/why-does-consolelog-return-undefined/63eca468594e01fde25fb859/comment/63ecd1247cedde50200b7900)

Nice explanation, especially the part about how code is executing in repl step by step. 👍

[Niharika Kesarwani](https://hashnode.com/@NiharikaKesarwani)

[Feb 15, 2023](https://hashnode.com/posts/why-does-consolelog-return-undefined/63eca468594e01fde25fb859/comment/63ecd1247cedde50200b7900#reply-63ecdc1d7cedde50200b7ae3)

Thank you, Jagrut! Glad you liked it!
