change tag

hi, i have a simple question in Javascript;

functionOnMouseDown(){
var gos : GameObject[ ];
gos = GameObject.FindGameObjectsWithTag(“fred”);

gos.tag = “untagged”
}

how can i make the change to game object with tag “fred”, into “untagged”?

You need to loop through all you objects and assign the new tag for each of them.
You can’t (unless I’m wrong) assign a flag to an array of objects.

This is c#, but you get the intention.

foreach(GameObject go in gos){
     go.tag = "untagged";
}