Var x = 10;

If (x > 5) {

Let x = 1;

}else {

Let x = 0 ;

}

Print(x);

This code prints out 10 but I don’t understand how?

If x is greater than 5 than x”should be” 1, right?

If it is less than 5 x “should be” 0. Since X is 10 shouldn’t it print out a “5”?

If someone could explain this to me I oils greatly appreciate it.