Hi folks.
I have an express/nodejs app.
There is some variable/file scope issue. The guy in the tutorial vid does not have it, so I think things have changed in express.js.
I have the app.js file where i do this:
var movies = [
{
title: "The usual suspects",
stars: "IMDB rating",
score: 8.4
}].
Then I have the index.ejs file, there:
<% movies.forEach(function(movie){ %>
<p> <%= movie.title %>xxxx </p>
<% }); %>
And then I get this error:
movies is not defined/ref error