https://www.codecademy.com/courses/learn-intermediate-javascript/lessons/classes/exercises/methods
“Notice, we also prepended our property names with underscores (_name
and _behavior
), which indicate these properties should not be accessed directly.”
Can someone help me understand what is the use of putting underscores before property names, Thank you.