What happens next?

Following that point in time, the behavior of the program depends entirely on the code that is written into the function named doSomething.

In this case, the code in the function named doSomething causes the program to print the following message on the screen:

Hello World

Other programs will probably do more.