---
title: "Discussion on \"console.log() VS return statement\" | Hashnode"
description: "Discussion on \"console.log() VS return statement\". The most used statements in JavaScript are console and return. But do you know which one is faster in performance? Do you know why you actually should care?"
url: "https://hashnode.com/posts/log-vs-return-statement/64e8578ea98b62733133a1ce"
---

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

Discussion

# [console.log() VS return statement](https://pratikdev.hashnode.dev/log-vs-return-statement?utm_source=hashnode&utm_medium=feed)

The most used statements in JavaScript are console and return. But do you know which one is faster in performance? Do you know why you actually should care?

Aug 25, 2023 · 5 min read · pratikdev.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#time-complexity](https://hashnode.com/tag/time-complexity)
-   [#comparison](https://hashnode.com/tag/comparison)
-   [#learning](https://hashnode.com/tag/learning)

## Written by

[Pratik Dev](https://hashnode.com/@pratikDev)

@pratikDev · Chattogram, Bangladesh

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

Ctrl+C Ctrl+V

Just a fellow programmer who likes to explore anything related to computers and currently works as a Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
