---
title: "Discussion on \"JavaScript Ternary Operator\" | Hashnode"
description: "Discussion on \"JavaScript Ternary Operator\". The funky cousin of the if-else statement"
url: "https://hashnode.com/posts/javascript-ternary-operator/63ff541ee429eb83c5e848cc"
---

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

Discussion

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

The funky cousin of the if-else statement

Feb 28, 2023 · 2 min read · wendelwritescode.hashnode.dev  
Updated Mar 2, 2023  
Read the article

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

## Written by

[Wendel Fabian Chinsamy](https://hashnode.com/@wendelchinsamy)

@wendelchinsamy · Johannesburg, South Africa

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

Software Engineer

Hello! I'm Wendel. A software engineer from Johannesburg, South Africa. I'm very passionate about learning and teaching and I'm using this platform as an opportunity to document my rise through the world of JavaScript. Join me!

## Responses

Comments are turned off for this post.
