Help with Unity 3d 3.x page 56

I am currently reading Will Goldstone’s new addition of the Unity 3D essentials book, (published December 2011) and I got stuck on making the script in page 56. Whenever I try putting the,

Rigidbody instance = Instantiate(bullet,transform.posistion,transform.rotation) as Rigidbody;

piece of code in I keep getting the error that says

Assets/shooter.js(14,10): UCE0001: ‘;’ expected. Insert a semicolon at the end.

Can you please help me fix this. I am currently using Java Script and the script I currently have is shown below.

#pragma strict

function Start () {
}
var bullet : Rigidbody;

var power : float = 1500;

var movespeed : float = 5;

function Update () {
var h: float = Input.GetAxis(“Horizontal”)* Time.deltaTime *movespeed;

var v : float = Input.GetAxis(“Vertical”) * Time.deltaTime *movespeed;

transform.Translate(h, v, 0);

if(Input.GetButtonUp(“Fire1”)){

Rigidbody instance = Instantiate(bullet,transform.posistion,transform.rotation) as Rigidbody;

}
}

Rigidbody instance = Instantiate(bullet,transform.posistion,transform.rotation) as Rigidbody;

is C# syntax.

The javascript equivalent which you need to use if you are programming in JS is

var instance : Rigidbody = Instantiate(bullet,transform.posistion,transform.rotation);

Thank you Simon, I realized that too. Putting in the wrong language = wrong code… XD