Discussioni Q&A
What’s this error
-1 Voto
10 Risposte? : 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 Voti
6 RispostePopolare oggi
Help
1 Votes
Data analysis
0 Votes
Course Doubt
1 Votes
Lesson Takeaways
0 Votes
How do i make a lexer and parser
1 Votes
Order of AI courses
0 Votes