Question:
Answer:
%% set jsCall "myFunction(" & a & "," & b & ")" %%
Then
you can use
%% jsCall.jsEval %%
In your WCTL to
invoke the function.
You can also pass the variables via path, session or user variables. Those are all shared between WCTL and WCJS.
You can also directly access a local WCTL variable from inside a WCJS function
with the wctlVar("varName") function.