Export can be like on a local laptop OR adobe folders inside explorer.
Yes you can export local variable value in your export file.
In your JS, define variable as:
And then file configuring columns of your export file. Add column using edit the expression and give value as: