5 Matching Annotations
  1. Jun 2021
    1. It is legal for a function to access a global variable. However, this is considered bad form by nearly all programmers and should be avoided.

      Why?

    1. Anytime you have two nested if statements as in the example above, you can combine them into a single if statement by joining the conditions using the and operator. Consider the version below, and think about why this if statement is equivalent in its behavior to the previous version with two nested if statements:

      Tip on how to handle nested if statement situations