Functions overwrite or work seperatelly ?

Ok i have a question that has been bothering me and i dont know how to search it or google it cause i cant express it, So my problem is if i make a custom funtion like:

var bb : int[];

function Update () {
if (input.getkeyDown("W") {
CustomF ();
}}

function CustomF () {
for (var i = 0; i < 10000; i++) {
bb *= i;*

}
Debug.Log (bb);
}
yes this is an untested code i just wrote to simulate what i mean, will the bb ever colapse with a previous version of itself or is the function CustomF in a different dimention when and doesnt colide with previous calls of itself ?
(excluding functions like Start,Awake,Update ect.)

you are modifying the bb var, if you acess the bb a new time before call your customf function your variable bb will be modifyied.

to the main variable not changes use this :

var bb : int[];
 
function Update () {
if (input.getkeyDown("W") {
CustomF (bb);
}}


function CustomF (localbb : int[]) {
for (var i = 0; i < 10000; i++) {
localbb *= i;*

Debug.Log (localbb*);*
Debug.Log (bb*);*
}

}