---
title: "Discussion on \"Short-Circuit Evaluation in JavaScript: How && and || Really Work\" | Hashnode"
description: "Discussion on \"Short-Circuit Evaluation in JavaScript: How && and || Really Work\". JavaScript does more than just return true or false for logical expressions.\nIt can also stop evaluating early and return actual values.\nThis behavior is called short-circuit evaluation.\nIn this article, you’ll learn:\n\nwhat short-circuit evaluation i..."
url: "https://hashnode.com/posts/short-circuit-evaluation-in-javascript-how-andand-and-really-work/6944b934c68e30dc900b7b8b"
---

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

Discussion

# [Short-Circuit Evaluation in JavaScript: How && and || Really Work](https://javascript-beginner-articles.hashnode.dev/short-circuit-evaluation-in-javascript-how-andand-and-really-work?utm_source=hashnode&utm_medium=feed)

JavaScript does more than just return true or false for logical expressions. It can also stop evaluating early and return actual values. This behavior is called short-circuit evaluation. In this article, you’ll learn: what short-circuit evaluation i...

Dec 19, 2025 · 3 min read · javascript-beginner-articles.hashnode.dev  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#short-circuiting](https://hashnode.com/tag/short-circuiting)
-   [#logical-operator](https://hashnode.com/tag/logical-operator)

## Written by

[Madankumar](https://hashnode.com/@madankumar-sajjanar)

@madankumar-sajjanar · Bangaluru,Karnataka,India

  
[View profile](https://hashnode.com/@madankumar-sajjanar)

Keep Coding

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
