JS vs C# - Guidelines?

Hello,
I want an advise on good practices concerning coding in WFG : JS versus C#.

Some actions can be performed with JS code or with C# code. I’d like to know if you have guidelines concerning which code to use.

For exemple, converting a value on screen can be done with JS or with C# with a post back.

Do you have any documentation or advise on this matter ?

Thanks.

Best regards.