#24 The Ternary (Conditional) Operator | JavaScript Full Tutorial

preview_player
Показать описание
The word ternary means composed of three parts, and thats because the Ternary Operator consists of three operands. In this lesson we're going to learn how to write the Ternary Operator and how it works.

------------------



------------------




------------------
Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)
Рекомендации по теме
Комментарии
Автор

Hi Dev dreamer I have very big fan of yours. seriously no one teach like you in youtube I learn very much from you

dilip
Автор

I’ve watched all of the videos up until this point, and I plan to take it all the way to the end. This series has given me confidence in utilizing mostly all of the basics of JavaScript. I’ve been bamboozled by fake teachers, and I just don’t see how this series isn’t hoisted above all the others. Thanks for this. I really needed this.

itsnobledean
Автор

I am currently enrolled in a bootcamp., ur vids are very helpful.

markdarucaaustria
Автор

well explained, I like your editing style

Frankslaboratory
Автор

If time variable is equal to string '12:00' how does it know that '11:59' is less if it's all string value and we didn't translate it to number value

rokovuco
Автор

my classList is showing type of error when tried doing the exact thing
what should I do

ABHISHEKS-pepw
Автор

Hi Dev dreamer please upload full we development project as you done in a css project plzzz Dev dreamer upload video

dilip
Автор

Very cool dark mode. Once I know it, I will feel like batman😏

Bravin_Joshua
Автор

//#1
let message = 1 >10 ? "Condition TRUE": "Condition FALSE";
console.log(message);
//Output:-Condition TRUE

let time = '12:00';
let timeNow = time < "12:00" ? "Good Morning" : "Good Evening";
console.log(timeNow);
//Output:-Good Evening

Robin_biju
join shbcf.ru