What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-10 22:11:12
show data of mongoose in html page using ejs
app.get('/profileface', isLoggedIn, function(req, res) { // mongoose operations are asynchronous, so you need to wait PracticeModel.find({}, function(err, data) { // note that data is an array of objects, not a single object! res.... Add solution -
Other 2021-10-18 08:57:07
errorMessage is not defined
ReferenceError: C:\Users\User\Desktop\aLibraryApp\views\layouts\layout.ejs:11 9| <body> 10| <%- include("../partials/header") %> >> 11| <%- include("../partials/e... Add solution