Q&A Discussions
Literally so confused
-1 Vote
2 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
Quiz
0 Votes
Sockets, etc
0 Votes
Necesitรณ ayuda
1 Votes
can't understand an error
0 Votes
Table tags on html
0 Votes
Loop
0 Votes