filmov
tv
Ternary Operators: An Introduction to the Alternative Conditional Operator in JavaScript

Показать описание
Just like JavaScript's if/else and switch statements, ternary operators allow developers to introduce conditional logic in their applications.
The one major difference between if/else statements and ternary operators is that the ternary operator returns an expression (or value) while the if/else statement performs actions (executes code) inside each block.
I'll walk through the idea of statements vs expressions in-depth. On top of that, I'll explain why it's beneficial to consider incorporating the operator in your applications.
Timestamps:
0:00 Intro
0:38 Ternary Operator Syntax
1:12 From if/else to Ternary
2:43 Ternary Expressions vs if/else Statements
4:01 Examples of How to Use Ternary Operator
5:58 Ternary Operator Chaining
7:23 Common, Real-World Uses of Ternary Operators
== Let's Connect ==
== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
#javascript #webdevelopment #softwareengineer
The one major difference between if/else statements and ternary operators is that the ternary operator returns an expression (or value) while the if/else statement performs actions (executes code) inside each block.
I'll walk through the idea of statements vs expressions in-depth. On top of that, I'll explain why it's beneficial to consider incorporating the operator in your applications.
Timestamps:
0:00 Intro
0:38 Ternary Operator Syntax
1:12 From if/else to Ternary
2:43 Ternary Expressions vs if/else Statements
4:01 Examples of How to Use Ternary Operator
5:58 Ternary Operator Chaining
7:23 Common, Real-World Uses of Ternary Operators
== Let's Connect ==
== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
#javascript #webdevelopment #softwareengineer
Ternary Operators: An Introduction to the Alternative Conditional Operator in JavaScript
Ternary Operator | C Programming Tutorial
Python's ternary operator
Ternary Operator | C++ Tutorial
Ternary Operator in Javascript | Tutorial for Beginners
Javascript Logical Operators & Ternary Operators | && (and), || (or), ?: (ternary)
Introduction to Programming using C++ - Ternary Operator
The JavaScript Ternary Operator in 2 Minutes
⚡ React JS + JavaScript Full Beginner Series | Episode 1
What is the ? code!? Learn about the ternary operator!
JavaScript Ternary Operators EXPLAINED in 3 min!
python tutorial) How to use 'Ternary Operators'
Computer Science C++ 101: Ternary Operators
Conditional Operator in C
Ternary Operators Explained in 5 minutes | JavaScript
#13 Ternary Operator in JavaScript
C++ Ternary Operator (Conditional Operator) | CPP Video Tutorial
PHP: Logical & Ternary Operators
C_13 Operators in C - Part 1 | Unary , Binary and Ternary Operators in C | C programming Tutorials
Ternary Operator in C programming Language Video Tutorial
003-Ternary Operator Explained with Example
Introduction to C++: Part 3 - If Statements, Conditionals, and Ternary Operators
Introduction to Java basics pt3: Scanner, Sets, While, Exceptions and Ternary operator
Javascript ternary operator
Комментарии