JavaScript Ternary Operator In 90 Seconds #JavaScriptJanuary

preview_player
Показать описание
Watch the entire #JavaScriptJanuary series from the beginning!

The ternary operator in JavaScript is a conditional operator. It’s basically a shorthand If statement. It tests a condition then returns a value if true or another value if false.

Syntax: boolean ? “Yep” : “Nope”
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#JavaScriptJanuary #31Days31Videos #codeSTACKr
Рекомендации по теме
Комментарии
Автор

Thanks for all of the support! Stay tuned for a new video every day in January!!

Watch the entire #JavaScriptJanuary series from the beginning!

📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)

codeSTACKr
Автор

I find myself constantly watching videos on 2x speed and skipping around to get to the explanation. It's refreshing how quick and concise these are.

SkawarsXE
Автор

Amazing{ video edition ., good} (work...Dude);!!

Alphabet_-_
Автор

thank you for this. it actually saved me a lot of time

agentprotik
Автор

Question: How do you use the % symbol as a divisor?

Knards
Автор

Hi, when I try to do this my ${randomNumber} doesn't work in console. It doesn't write exact number (like 7), it does say that it is odd but it shows up like this in console "${randomNumber} is odd." Can you help me?

lukamihelac