How to add to a 3D object's length through code?

What I want to do is make a script where it detects when something enters the trigger collision box, then makes the object a little bit taller each collision enter, but I have no idea how to even start coding this (in JavaScript). Help?

OnTriggerEnter(other Collider) {

Unity - Scripting API: Transform.localScale

}