I need help understanding something that I'm learning. Some lines of my code set a variable, name, which holds a name for a user and is set when an element is clicked.
The problem I've discovered is even without clicking the element, a user may still access it in the console.
I thought something was wrong with my code but I found the same accessing it on another site; for instance, accessing the variable on facebook yields "_e_0MDe"
. Other sites yield empty strings, like ""
.
Why does this happen? Thank you.