Below are some of the basic data types used in C#
(Always remember when declaring char variables you must use ' ')
(Always remember when declaring String variables you must use " " and for char variables you must use ' ')
In this case variable age stores the value 22.
Arithmetic Operators
Addition | + | ![]() |
Subtraction | - | ![]() |
Multiplication | * | ![]() |
Division | / | ![]() |
Increment | ++ | |
Decrement | -- | |
Remainder | % |
Comparsion Operators
Equal | == | ![]() |
Not equal | != | |
Greater than | > | ![]() |
Greater than or equal to | >= | |
Less than | < | ![]() |
Less than or equal to | <= |
Logical Operators
Logical AND | && | ![]() |
Logical OR | || | ![]() |
Logical NOT | ! | ![]() |
A loop is used to tell the computer to do something more than once. In Scratch, you may have come across the following loop blocks.
How do we do this in C#?
In C#, the common types of loops you will use are: while loop, do-while loop and for loop.
Arrays in C# allows you to stores multiple values in a single variable.
There are two kinds of arrays, fixed length and dynamic.
Below are some of the basic data types used in JavaScript
Always remember when declaring String variables you must use " " or ' '
In this case variable name stores the value Joe.
Arithmetic Operators
Addition | + | ![]() |
Subtraction | - | ![]() |
Multiplication | * | ![]() |
Division | / | ![]() |
Increment | ++ | |
Decrement | -- | |
Remainder | % |
Comparsion Operators
Equal | === | ![]() |
Not equal | !== | |
Greater than | > | ![]() |
Greater than or equal to | >= | |
Less than | < | ![]() |
Less than or equal to | <= |
Logical Operators
Logical AND | && | ![]() |
Logical OR | || | ![]() |
Logical NOT | ! | ![]() |
IF / Else statements are used to perform different actions based on different decisions.
In Scratch, a simple if/else statement may look at this
How do we do this in JavaScript?
A loop is used to tell the computer to do something more than once.
In Scratch, you may have come across the following loop blocks
How do we do this in JavaScript?
In JavaScript, the two common types of loops you will use are: for and while.
A for loop is used when you know in advance how many times the script should perform.
A while loop is used when you want the loop to continue until a certain condition becomes true.
Arrays in JavaScript allows you to stores multiple values in a single variable.
To create an array in JavaScript
Below are useful websites/videos that will help you learn and understand more about C# and JavaScript.