## Relational Operators

Relational operators are used to compare two variables together and return a boolean result (true or false). They are often used to run conditional elements of code, such as if statements or loops. Most of the relational operators are only … Click to read more

## Arithmetic Operators

Arithmetic operators are the easiest for new developers to understand, they relate to basic mathematics operations. There are five main arithmetic operators; addition, subtraction, multiplication, division, and modulus. These operations are used to manipulate the value of number variables, both … Click to read more

## Functions and Subroutines

A function or subroutine is a way to separate sections of code which allows us to organise our code and execute the code multiple times with slight variations and differences. Different programming languages have different words for this; functions, subroutines, … Click to read more

## Case and Switch Statement

Case and switch statements are used to run conditional code based on the state of another variable. This differs from if statements, as case statements cannot use less than or more than operators, only equals operators. Case statements are used … Click to read more

## While and Do While Loops

A while loop is a way of repeating a section of code while a condition is true. While loops have two main parts; the condition and the code that will be repeated and executed. A while loop is similar to … Click to read more

## For Loops

A for loop allows us to repeat sections of code for a specified number of times, or iterations. There are 4 components that make up a for loop; the iterator, the condition, the increment and the code to be executed.… Click to read more

## If and Else If Statements

If statements allow us to add conditional code to be executed based on certain conditions, this means we can add different routes or paths in our code. With if statements you can also add additional routes by using else if … Click to read more