I'm a total newb just like you (and I use C# instead of JS which also complicates things) but I'll just throw it out there:
If you want to collide the Is Trigger button must be DEACTIVATED otherwise collision will be ignored.
Also, since you're not using the trigger options your function shouldn't be the onTriggerEnter but something related to collision. In C# there are functions like "OnCollisionEnter" and "OnCollisionExit" to regulate what happens when a gameobject touches another. Try to find their counterparts in javascript i you can
If you want to collide the Is Trigger button must be DEACTIVATED otherwise collision will be ignored.
Also, since you're not using the trigger options your function shouldn't be the onTriggerEnter but something related to collision. In C# there are functions like "OnCollisionEnter" and "OnCollisionExit" to regulate what happens when a gameobject touches another. Try to find their counterparts in javascript i you can