I assume your friend thinks youâre batty because of your beverage opinions and not for other reasons beyond my expertise. Given that, Iâd have to side with your Perrier-drinking pal, but also assure you that it is a common misconception that carbonation pulls calcium from your bones.
Functions [edit]. A function, which can also be referred to as subroutine, procedure, subprogram or even method, carries out tasks defined by a sequence of statements called a statement block that need only be written once and called by a program as many times as needed to carry out the same task.
JavaScript, and thus Node.js, is at it's heart a functional programming language. Functions are fully typed objects that can be modified, extended, and used as data objects. A function is a block of code designed to perform a specific task and is much the same as a procedure or subroutine in other programming languages.