Ok, how does the computer parse script? From top to bottom. Let's look at this simple script.
Be sure to note, that some languages, such as C# always read from the Main() method first, though it does read from that from top to bottom, but always runs things from that method before moving on, regardless of where it lives in the code.