Conditions
Control flow determines which code is executed and the order in which it will happen. To illustrate this, first consider the default behavior of Javascript.
As the program runs, it will execute the instructions it finds, line by line, until the end.
let apples = 0;
apples = apples + 10;
console.log(`We have ${apples} apples!`);