You can’t wrap it in a function like you are and you are not supposed to add anything to exports. Just add the console log at the top level and don’t change the starting code.
myApp.js
let express = require('express');
let app = express();
// add your code here
module.exports = app;