Variables not showing in inspector

As the title explains, none of the below variables are showing in inspector, why ?

function Update () {

var speed = 0; //variable for setting the speed of the bullet. 
var bulletPrefab:Transform;

var h = Input.GetAxisRaw(“Fire1”);

// if theres keyboard input fire the bullet

Instantiate(bulletPrefab, GameObject.Find(“bulletSpawnPoint”).transform.position, Quaternion.identity);
bulletPrefab.transform.Translate(Vector3(0,0,h + speed));

Because all of them are inside a function, which makes them local to that function only. (Also please format code correctly when posting.)