There are many ways in which JavaScript's approach is different from standard, run of the mill, class-based languages, but some of them go unnoticed. Take the whole subject of parameter passing - ...
The function getFontInfo has three parameters - name, colour and size. The two parameters colour and size are optional. Name is the font name (e.g. Calibri), colour is the font colour (e.g. Black) and ...