How to make a script enlarge a character.

How do you make a javascript change the scale of a character? The idea is that the character hits a powerup and grows bigger. I am a beginner so I don't know much about scripting.

transform.localScale *= 2;

You can change the scale of a game object like so:

// C#
transform.localScale = new Vector3(transform.localScale.x * 2, transform.localScale.y * 2, transform.localScale.z * 2);

Edit: Oh... javascript. :(

// JS
transform.localScale = Vector3(transform.localScale.x * 2, transform.localScale.y * 2, transform.localScale.z * 2);

I think that should work. I only know C#, so that's my best guess at translating that code.