I have encountered 2 conflicting naming conventions while using nodeJS. Some variables start with a single underscore, like _temp
, while some start with double underscore, like __dirname
.
I have been trying to search for an answer to this naming convention difference. I checked out Double Underscore in front of a variable but the answer was very specific to __dirname
and __filename
. It didn't address the conflicting naming convention.
It will be great if someone could provide me with a resource for this.