Bake dates into articles
This commit is contained in:
@ -5,6 +5,8 @@ tags: javascript,condition
|
||||
authors: maciv
|
||||
cover: blog_images/red-succulent.jpg
|
||||
excerpt: Learn everything you need to know about the conditional (ternary) operator and how to use it in JavaScript.
|
||||
firstSeen: 2020-09-01T01:53:34+03:00
|
||||
lastUpdated: 2021-06-12T19:30:41+03:00
|
||||
---
|
||||
|
||||
JavaScript's ternary operator (`?:`), also called the conditional operator, is used to replace a conditional statement, most commonly an assignment. For example:
|
||||
|
||||
Reference in New Issue
Block a user