Y
Hacker News
new
|
ask
|
show
|
jobs
by
intrasight
129 days ago
What's with variable names starting with "#" as first character?
2 comments
afishhh
129 days ago
If you are referring to class members in the JavaScript then those are private fields[1]
[1]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
link
intrasight
129 days ago
I had Googled my question too. Got no hits which is why I asked. Haven't seen it before.
link
animal_spirits
129 days ago
That's just markdown headers. Some people like to include # as part of the header aesthetic
link
chrisweekly
129 days ago
No, the Q was about javascript not markdown. Peer comment from afishh (9m after yours) has it right.
link
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...