In javascript, the if else statement is like a senario. For example, if it is monday-friday, wake up at 6:45; if not, wake up at 8:00.

The way if else statements are structured is . . .

if ( a javascript condition ) {
Do this;
} else {
Do something else;
}