Is there something I’m missing in how I wrote my code to create a blog with a DB? My blog already has posts read from a DB so I don’t get why they aren’t displayed.
TypeError: C:\Users\user\Desktop\projects\Cornell_Style_Note_Taker\Blog-With-Database-final\views\home.ejs:13
11|
12|
13| <%=post.content.substring(0, 100) + " …"%>
14|
15| Read More
16|
Cannot read property ‘substring’ of undefined