---
title: "Discussion on \"JavaScript Conditionals & Logical Operators\" | Hashnode"
description: "Discussion on \"JavaScript Conditionals & Logical Operators\". What are conditionals?\nA conditional regulates behavior and decides whether or not certain bits of code can be executed.\nTypes of conditionals\n\nExamples\nif statements\nif (12 < 5) {\nconsole.log(true);\n}\n\nelse statements\nif (12 < 5) {\nconsole.log(true)..."
url: "https://hashnode.com/posts/javascript-conditionals-logical-operators/6309d74d38843b7139785001"
---

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

Discussion

# [JavaScript Conditionals & Logical Operators](https://samstech.hashnode.dev/javascript-conditionals-logical-operators?utm_source=hashnode&utm_medium=feed)

What are conditionals? A conditional regulates behavior and decides whether or not certain bits of code can be executed. Types of conditionals Examples if statements if (12 < 5) { console.log(true); } else statements if (12 < 5) { console.log(true)...

Aug 27, 2022 · 2 min read · samstech.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Sameerah Adeshina](https://hashnode.com/@PerfectPup246)

@PerfectPup246

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

Student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
