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 ...
The Windows Runtime allows parameters to be declared as out, which means that the variable is passed by reference and will be written to, but not read from, by the method. (At the ABI layer, the ...