Tag: Programming

Glossary: Array operator

Posted on

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” => […]

Glossary: String operator

Posted on

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…”  […]

Glossary: Increment/decrement operator

Posted on

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 […]

Glossary: Arithmetic operator

Posted on

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 […]

Glossary: Type operator

Posted on

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 […]