26. Question about IF/ELSE statement


#1

Hi,
So I've passed this task, but I'm a bit baffled about the if/else statement in the task.
Why is it, the if statement is written as A (See below) and not the way we have been taught on every other tasks like B (See Below)?

**A**
if (pass == 1234) return bankBalance;
     else return "Wrong password.";

**B**
if (pass == 1234) { 
return bankBalance;
}
else {
return "Wrong password.";
}


#2

it is just a little shorthand, it can tell why the creator of the course decided to use it.


#3

both can be used, but B is better when learning.