Discussions Q&R
? : 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 RéponsesAujourd'hui en vedette
HTML
3 Votes
Formating in python
0 Votes
How to learn this code
1 Votes
How to grow in sololearn
0 Votes
Website
3 Votes
cell growth
0 Votes
How do you format curly braces?
1 Votes
Html tag form
1 Votes