In-depth Guide to Conditionals
In JavaScript, the execution flow is normally top-down. else if statements are the branches that allow your code to make complex decisions.
The Golden Rule
"As soon as JavaScript finds a true condition in an if/else if chain, it executes that block and jumps directly to the end of the entire conditional structure."
This means the order of your conditions matters. You should always evaluate the most specific conditions first, and then the more general ones.