Can you guys help me solve the problem with this script?

this is my script and i keep on getting this same error: Assets/complete scripts/DieOnHit.js(4,48): BCE0005: Unknown identifier: ‘enemy’.

#pragma strict

function OnTriggerEnter () {
var enemy = transform.GetComponentInParent(enemy);
enemy.Die();
}

read what kind of parameters are in getcomponent. unless enemy is a string elsewhere in your code…
but since its unknown identifier… its telling you whats wrong