---
title: "Discussion on \"Ternary operator in JavaScript\" | Hashnode"
description: "Discussion on \"Ternary operator in JavaScript\". This tutorial will teach you how to use the ternary operator to make your code more concise.\nThe ternary operator is also known as the conditional operator. It is the only operator in JavaScript that operates on three operands. It is a cleaner altern..."
url: "https://hashnode.com/posts/ternary-operator-in-javascript/6129d0a9fd0bf8636d76ae67"
---

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

Discussion

# [Ternary operator in JavaScript](https://ravikumar0403.hashnode.dev/ternary-operator-in-javascript?utm_source=hashnode&utm_medium=feed)

This tutorial will teach you how to use the ternary operator to make your code more concise. The ternary operator is also known as the conditional operator. It is the only operator in JavaScript that operates on three operands. It is a cleaner altern...

Aug 28, 2021 · 2 min read · ravikumar0403.hashnode.dev  
Read the article

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

## Written by

[Ravi Kumar](https://hashnode.com/@ravikumar0403)

@ravikumar0403

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
