PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Ternary operators

Ternary operators

Ternary operators are a feature.

In computer science, a ternary operator is an operator that takes three arguments.


Languages with Ternary operators include JavaScript

Example from JavaScript:
let i = true ? 1 : 0
supports-breakpoints-feature.html 路 ternary-operators-feature.html 路 threads-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 29 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com