mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
198 B
198 B
date | id | title |
---|---|---|
2020-11-12 | 4a8846d3-a3c3-4edc-8fa1-a2de76f1094f | JavaScript Conditional (Ternary) Operator |
Syntax
console.log(true ? 1 : 2)
console.log(false ? 1 : 2)