What is the difference between
prototype.somefunction()
and
prototype._anotherfunction()
I know this might be trivial, but I couldn't find it.
What is the difference between
prototype.somefunction()
and
prototype._anotherfunction()
I know this might be trivial, but I couldn't find it.
One has an underscore in the name. There's no difference as far as the javascript engine itself is concerned.
However, it's a common convention to name "private" methods such that they start with an underscore.