Can someone please help me understand the significance of the \'_\' character in the setters and getters of javascript. For example I have the following code which works fi
It's naming convention used to identify private variables or properties. The _ has no sign particular significance to JS.
_
From Airbnb JavaScript style guide:
Use a leading underscore _ when naming private properties.
https://github.com/airbnb/javascript#22.4