F&A Diskussionen
Literally so confused
-1 Stimme
2 Antworten? : 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 Stimmen
6 AntwortenHeute heiß
Solving coding challenges
2 Votes
I am new
1 Votes
Advertising in Sololearn
1 Votes
RUST'S FUTURE
1 Votes
Programming Language
0 Votes