The first implementation calls a method directly from the constructor. These methods are quite often some kind of initialization methods that build the needed inner state of the this
context. In non JavaScript appropriate OOP speak this would mean that a method is called directly from your class constructor that builds up some initial state.
The second implementation exposes the prototype function anotherFunction
as part of the public interface.
In short: Both variants are correct but implement different concepts