why in my script written why missing name after . operator when I've included a script like this
this.switch = function(){
if (this.status == "enabled")
{
this.disable();
this.stop();
}
else
{
this.enable();
}
}
the script is meant to divert status from enabled to disabled
switchis a reserved word