else {
All commands inside an else block are executed if the expression in the earlier if block is false.
for (i = 0; i < 10; i++) {
All commands inside a for loop block are repeatedly executed.
function doSomething() {
Defines a list of commands as function which can be called.
if (expression) {
All commands inside an if block are only executed if expression is true.
while (expression) {
All commands inside a while loop block are repeatedly executed until expression becomes false.