New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Why does this happen
7 Votes
3 AnswersChallenge::Expression Validity
16 Votes
15 AnswersStill Dont Get It
9 Votes
5 Answers? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 AnswersHot today
Help me plss
3 Votes
Android studio emulator
0 Votes
Return function
1 Votes
help me
0 Votes
Can anyone guide me
0 Votes
Internal vs external JS
1 Votes
Wrong?
0 Votes