Help with calling JS variable

I’ve been messing with it a bit more following Get a Javascript variable outside the script and some other posts.

I’m not sure what I need to use as the setValue for the dmx variable in order to pull the JS variable.

Here is my console with me testing a few things.

I don’t know what to type to get the value of my randNum variable into var1.