Access function in app.js

I’m sure it will. I was just a bit vauge as to what the question was. I got it to work the other way around but I wanted to find out why it did not work.