? : 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 😁 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 18

? : 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 😁

22nd Aug 2016, 9:42 PM
Erwin Mesias
Erwin Mesias - avatar
6 Answers
+ 3
The specific details were not explained at the tutorial section, that's why. Can't you just be glad that someone tried to make it clear to those who do not understand it? Does my post hurt you for you to criticize it? ba.ka.
16th Sep 2016, 6:52 PM
Erwin Mesias
Erwin Mesias - avatar
+ 1
thanks man appreciate it
20th Jan 2017, 2:10 PM
Abdullah Al-Mobaiyed
Abdullah Al-Mobaiyed - avatar
+ 1
@abbude sy No Problem Buddy!
20th Jan 2017, 4:17 PM
Erwin Mesias
Erwin Mesias - avatar
0
h
11th Nov 2016, 9:37 AM
alireza
0
Sebastian you do realize that SOME people dont read the tutorials
3rd Dec 2016, 1:22 AM
julio
0
The section on this operator was very vague. Any extra info helps. Thanks!
30th Jul 2017, 8:13 PM
A.R
A.R - avatar