New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
? : 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
What's the error in this code?
1 Votes
How to find image links
0 Votes
Py to Exe
0 Votes
I don’t know why but python seems to be harder than java to me does any body else fell like this?
0 Votes
What's wrong with my code?
0 Votes
How I can win more Heart?
0 Votes
TIMER
0 Votes