How to call a client method from another client method?

Hello everybody.

I have several client methods which are sharing some common code. I would like to put that code in a method, and call that method from the other methods, everything is client side. How can I do that?