---
title: "Discussion on \"undefined ? \"print\":\"not print\" what is output...?\" | Hashnode"
description: "Discussion on \"undefined ? \"print\":\"not print\" what is output...?\". The expression undefined ? \"print\" : \"not print\" evaluates to \"not print\" because undefined is a falsy value in JavaScript. In a ternary operator, if the co"
url: "https://hashnode.com/posts/undefined-printnot-print-what-is-output/67657a411febdd2841cd198d"
---

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

Discussion

# [undefined ? "print":"not print" what is output...?](https://shindeanand358.hashnode.dev/undefined-printnot-print-what-is-output?utm_source=hashnode&utm_medium=feed)

The expression undefined ? "print" : "not print" evaluates to "not print" because undefined is a falsy value in JavaScript. In a ternary operator, if the co

Dec 20, 2024 · 1 min read · shindeanand358.hashnode.dev  
Read the article

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

## Written by

[Anand Shinde](https://hashnode.com/@anandshinde358)

@anandshinde358 · mumbai

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

Software Engineer

Full-Stack Developer | JavaScript, React, Next.js, MongoDB Specialist | Building Dynamic &amp; High-Performance Web Applications

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
