What value is stored in the variable c ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What value is stored in the variable c ?

var a = 42; var b = 60; var c = a >= b;

11th Jun 2018, 9:11 AM
LIM Chantha
LIM Chantha - avatar
1 Answer
+ 3
it's "False". Why? because you just use a conditional operator when you want to assign a value to the c variable. So it return false, because the a variable is smaller than the b variable.
11th Jun 2018, 10:08 AM
Owenizedd
Owenizedd - avatar