JavaScript Nested if

You can use an if statement inside another if statement: