The toLocaleString() method is available for many JavaScript objects.
In this example it is used on a number (num).