How do i deactivate a GameObject from js

I have a simple script I want to deactivate a gameObject that it is attached to. This is what I have but it does not work

#pragma strict

public var SubtractOne : GameObject;

function Start () {
	game.noOfHits = -1;
	SubtractOne.SetActive(false);
}


function Update () {

}

Thanks
Brandon

Doesn’t work how? Not do anything? Causes and error? Is SubtractOne initialized in the Inspector? Are there any other scripts manipulating the game object that is initialized into SubtractOne?

If you just want to deactivate the game object this script is attached to, you can do:

gameObject.SetActive(false);