What does the term mean?

A type of operator which allows you to perform actions on two or more arrays and their contents. Although they vary in how they are written between languages, the array operators are roughly as follows: Operator Example Description + apples=[“russet”=>2,”cox”=>5,”golden delicious”=>2]pears=[“dessert”=>3, “conference”=>2]   apples + pears returns [“russet” => 2, “cox” => 5, “dessert” => […]

What does the term mean?

A type of operator which allows you to perform join different strings together. Although they vary in how they are written between languages, the string operators are roughly as follows: Operator Example Description . “my name is…” . “Joe…”  returns “my name is…Joe…” Concatenates or joins two strings together .= “my name is…” += “Joe…”  […]

What does the term mean?

A type of operator which allows you to increase or decrease a particular variable by 1. Depending on the language, the result can be returned. Although they vary in how they are written between languages, the increment / decrement operators are roughly as follows: Operator Example Description ++x ++2 adds 1 to 2 and then […]

What does the term mean?

A type of operator which uses numbers to perform simple mathematic equations. It is made up of two operands . For example, if you were to say x + y the letters x and y are your operands. When you then ask the computer to show you the value of this expression you would get […]

What does the term mean?

A type of operator which tells you how a particular piece of code or variable is stored in your program. Type operators are not available in all programming languages. Although they vary in how they are written between languages, the type operators are roughly as follows: Operator Example Description typeof typeof “John” returns “string” typeof […]

What does the term mean?

A type of operator which uses numbers to assign a value to a variable. It is made up of two operands one of which being your variable, or an operand (your variable) and an expression. For example, if you were to say x = 3 the letter x is your variable and 3 is your […]

What does the term mean?

An operand is a term in both maths and programming. It decribes an item that can be modified in some way by having an operation performed upon it. Taking a basic sum 1 + 2. Both the number 1 and 2 act as operands, the + is an operator.

What does the term mean?

Variables that do not have a value stored in them. For example, if you want to store the number of litres of water you have drank today, you may have a variable called number-of-litres. If you’re not sure how many litres you have drunk, perhaps because it is only half-way though the day and there […]

What does the term mean?

A type of operator which combines multiple statements. For example, you have the attributes ‘cat’ and ‘dog’: if a person likes cats you’d set the value of that attribute to ‘yes’, and if they did not you’d set the value to ‘no’, and the same goes for dogs. If you used an operator of AND, […]

What does the term mean?

An if statement is a way of telling a computer to only perform a specific task under some circumstances. It is considered a conditional statement. If statments, depending on the language you use, consist of ‘if’, ‘if else’ and ‘else’. You can have as many ‘if else’ parts as you like, but only one ‘if’ […]