You are almost 100% correct. When it occurs ||, the first part is calculated, and if it is a true value, it is returned. If this value is falsehood, estimated second part, which in this case sets this.totalsin {}and returns estimate {}.
source
share