I read in the chapter on timers in Chad R. Adams' book "Mastering JavaScript High Performance" (PacktPub) that capitalizing the name of a function indicates to the interpreter that it is a constructor.
It's the first time I've ever heard this. Previously I was led to believe that capitalizing functions was just a convention by programmers but now I'm not sure.
So does capitalizing affect how my code is interpreted at all?
Exact citation from the book:
Notice how we renamed Delay3000 on line 22, capitalizing the d. The purpose of this is to indicate to the JavaScript interpreter that this is a constructor, a function that requires it to be initialized in memory.
Chapter: Operators, Loops and Timers -> Timers