app.set('view engine', 'pug');
.)router.get
:router.get
function call with the following code:res.render
. You need to fix the error before the app can run, which you do in the next section.res.render
.data
string, type : get
and IntelliSense will show you the getData
function defined earlier in the code. Select getData
.getData()
.,
) before 'data'
and you see green syntax highlighting on the expression. Hover over the syntax highlighting.,
).,
) before 'data'
.res.render('index', { title: 'Express', 'data': getData() });
res.render('index', { title: 'Express', 'data': getData() });
getData
to see its properties in a DataTip