References to variables in a custom js variable

Is it possible in the matomo tag manager in variables of the custom js type to make references to other variables as in GTM (for example: {{action}})? If possible, how can I do it?
for example code:
function() {
var myVariable = {{eventCategory}}
return myVariable;
}

if it is not possible, then tell me, which code in a custom js variable can take a value from datalayer?

Hi @Dmitr
I think you’ll find the solution here: