Test of JavaScript function calls

This page demonstrates that a function only returns a value, if it explicitly uses the return statement. Otherwise, the result of a function invocation is undefined. To understand the lines logged to the console, one must inspect the source code of this page.

Console output