Create an Object at a X,Y,Z location on the fly

Hi,

I am having a problem creating an object at a given XYZ location using JavaScript. How could I do this?

Instantiate.

Example (from the documentation):

var prefab : Transform;
Instantiate (prefab, Vector3(x, y, z), Quaternion.identity);