I am trying to learn EJS and make a blog but I cant seem to understand this error What I am trying to do is try to write some db response as an Object to an array then push it to the file. I am using replit DB Error that I am getting when I run the code: Answer First,
Tag: ejs
node js send token through the header
i try to send token use header, (login form to index page use the header) router.post(‘/login’,async(req,res)=>{ const {error} = logvali(req.body); if(error) return res.status(400).send(…
Not able to route some sites with ejs
I’m working on my side structure and tried to add multiple single pages. Here is my site structure: bin node_modules public query routes – index.js views -menu –menu1.ejs –menu2.ejs –menu3.ejs -…
Store multiple radio button values in an array Javascript
I would like to store my test answers in an array in javascript. I created 50 questions with for loop, the user can choose between 4 radio buttons(answer). How could i store these answers in an array? …
How to automate the creation of multiple ejs files with nodejs
I am currently making a blog site and I have this “compose page” where I can write articles. I’m currently using ejs so when the article is posted the data gets saved. But these articles are …
How to get only key and value from stringifying json after API fetch?
I’m trying to display only the key and value on an EJS page. leaves me with {“USD”:1,”AED”:3.6721,&…
Is there any way to get value in node js server while clicking on div
Here is my EJS file