logoalt Hacker News

intrasightyesterday at 4:20 PM2 repliesview on HN

What's with variable names starting with "#" as first character?


Replies

afishhhyesterday at 4:35 PM

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...

show 1 reply
animal_spiritsyesterday at 4:25 PM

That's just markdown headers. Some people like to include # as part of the header aesthetic

show 1 reply