Access function in app.js

I expected something like this and there it is.

It does explain the huge jump from w3school’s Hello World to (virtualy) anything in production. Thank you.