Read the Value of a Variable through JavaScript

I just found this thread and see the discussion about what is and is not available in JXA (ie: document and console.log()), the confusion that arrises, and the use of the modern syntax option.

So I thought I'd cross-reference this: