Check out example codes for "how to create a variable in C#". It will help you in understanding the concepts better.

Code Example 1

// All types of variables
int MyNumber = 2; // A number
float MyDotNumber = 2.2; // A Number with decimals
string MyText = ("Hello World") //Text
bool YesOrNo = true; //True or False

// Formats

(Type) (Name) = (Value);
E.g:
int NameOfVariable = (Value depending on type)

Code Example 2

int variable;

Code Example 3

public int yourNumber = 5;

Learn ReactJs, React Native from akashmittal.com