How to use a module constant in a JavaScript action?

In Java Action you can use module constants via the “Constants” Object, which is a wrapper around Core.getConfiguration().getConstantValue(“ConstantValueName”) Is there a similar mechanism available in JavaScript actions? e.g. in the mx namespace? Of course you can add the constant as a parameter to the JavaScript action - but I like to get rid of this, as the constant will not change during runtime.
1 answers

To use a constant from javascript, the constant has to be marked as available from the client side.
If that condition is met you can use