PLEASE HELP me in this problem of JS ASAP You are to write code for the Displaydata.hbs file for the given following route code in the server.js file. Assume all the necessary code for the server.js...







PLEASE HELP me in this problem of JS ASAP



You are to write code for the Displaydata.hbs file for the given following route code in the server.js file. Assume all the necessary code for
the server.js fle is complete. You must utilize 'each' helper with @index variable in the Displaydata.hbs to display the data in a tabular form
with table head as Number of classes, Title and Name.


app.get("/Displaydata",
(req, res) => {
               const classes = [{
                   title: "WEB222",
                   name: "Web1"
               },


               {
                   title: "WEB322",
                   name: "WEB2"
               },


               {
                   title: "WEB422",
                   name: "WEB3"
               },


               {
                   title: "WEB522",
                   name: "WEB4"
               }
               ];


                   res.render("Displaydata", {
                       classes: classes,
                       layout: false // do not use the default Layout
                   });
           });









Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here