Check out example codes for "functions unity". It will help you in understanding the concepts better.

Code Example 1

NumValue = 6;
int myfunc(int num){ // Optional int(s) Go In Parentheses
  // Any Given Code Goes here. If You Want to Use ints, use int name.
  // I Don't know the name for this so i will call it the function description
myfunc(NumValue); // Will Run Any Given Code Placed Inside The function description

Learn ReactJs, React Native from