String, Number, and Boolean are actually objects in JavaScript - those examples provides are actually not String, Number, and Boolean - they are primitive strings, numbers, and booleans - which is completely different.
The objects with the same name (but the leading capital letter instead of lowercase) can be used to convert string, number, and boolean into String, Number and Boolean where in the case of the first two you then have a number of methods that can be applied - such as taking a substring of the String or converting the number to display with a fixed number of decimal places (not sure why anyone would ever use Boolean objects for anything) though).
For more information about the built in objects in JavaScript and the methods that they supply for manipulating your data see
http://javascriptexample.net/objects.php