JavaScript Tip: Conditional Shorthand

preview_player
Показать описание
I know when I was first learning JavaScript I would sometimes run into a conditional statement that was written in shorthand or a concise format, and it didn't immediately understand how it worked. As I stuck with it, I began to understand it, but also discovered how many keystrokes I could save. In this tutorial we are going to look at some conditional shorthand in JavaScript.

Would you like to help keep this channel going?

Tutorials referred to in this video:

For more resources on JavaScript:

#javascript #AllThingsJavaScriptLLC
Рекомендации по теме
Комментарии
Автор

Ternary operators and short-circuit evaluation using concise logical expressions are amongst my favorite things in JavaScript! They are just so elegant!

MauriceLacerda
Автор

Nothing to add to this tutorial. 100% informative and complete. Thank you!!

_chris_
Автор

I finally aware boolean type are useful.

chnsonic
Автор

let finalMessage = (!false) ? "Good Job!" : "Watch Tutorial Again";

ChrisTian-oxnr
Автор

What do you use for the screen capture of your videos

Luxcium