Defining array constants in server side

Hi,
Is there a way to define constants in the server side and use them in the client?
Or perhaps anyway, I can hide some of my code in the public section?

Yes.
https://support.wix.com/en/article/corvid-web-modules-calling-server-side-code-from-the-front-end