Enemy AI Error

i followed this guys youtube tutorial but i got an error but he didn’t, i always have problems with unity and i follow the tutorials 100% every step but i get these small annoying errors, any help with this script would be Great! ERROR: Assets/Enemy Health.js(1,11): UCE0001: ‘;’ expected. Insert a semicolon at the end.

var health - 10;
var TakeDamage  :  boolean;

function OnTriggerEnter(other: Collider){
if(other.tag == "Player"){
TakeDamage = true;
}
}

function OnTriggerExit(other: Collider){
if(other.tag == "Player"){
TakeDamage = false;
}
}

function Update(){
if(TakeDamage){
if(Input.GetButtonDown("fire1")){
health - - 1;
}
}
}
if(health <- 1){
health - 0;
Destroy (gameObject);
}

Line 1 should be:

var health = 10;

Line 19 should be:

health -= 1;

Line 23 should be:

if(health <= 1){

And line 24 should be:

health = 0;

Also you have you brackets wrong. The last if-statement should be inside the Update function:

function Update()
{
    if(TakeDamage)
    {
        if(Input.GetButtonDown("fire1"))
        {
            health -= 1;
        }
    }
    if(health <= 1)
    {
        health = 0;
        Destroy (gameObject);
    }
}

You should indent your code to avoid such mistakes.