#24 The Ternary (Conditional) Operator | JavaScript Full Tutorial
Вставка
- Опубліковано 15 вер 2024
- 🙂 SUBSCRIBE - hit the bell 🔔 and choose all: goo.gl/nYLZvz
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.
------------------
👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
------------------
FACEBOOK: / devdreamercode
TWITTER: / devdreamercode
SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
------------------
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
You are so amazing. thank you
I am currently enrolled in a bootcamp., ur vids are very helpful.
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.
well explained, I like your editing style
love you bro
Hi Dev dreamer please upload full we development project as you done in a css project plzzz Dev dreamer upload video
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
my classList is showing type of error when tried doing the exact thing
what should I do
I really need that DOM tutorial :(
☑
Very cool dark mode. Once I know it, I will feel like batman😏
I tried..... time
//#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