Methods in C#

A method, also known as a function, is a module of code that a programmer can create and then call on later on in the program. Many methods already exist in programming …

Methods in C#

In C#, methods are like functions. Methods can be created to store a list of instructions that can then be called on later on in the program. Methods can be …

Variable scope

Now that you are using functions in JavaScript, it is really important to understand variable scope. JavaScript has two variable scopes: global and local. A global variable is a variable which is declared outside …

Functions with a parameter

The sample code shows how to make a function which uses a parameter.  A parameter is like a special variable which is used in a function to refer to a piece of data …