Publicité
 What is the most appropriate line of code on the response object to r.pdf
Prochain SlideShare
 What is the primary difference between a static budget and a flexible.pdf What is the primary difference between a static budget and a flexible.pdf
Chargement dans ... 3
1 sur 1
Publicité

Contenu connexe

Plus de ardeeps(20)

Publicité

What is the most appropriate line of code on the response object to r.pdf

  1. What is the most appropriate line of code on the response object to render this template with the correct data? a. res.sendFile("home-page.ejs"); b. res.send("home-page", {user: "simon", messages: [{message: "hi", sender: "jo"}], isLoggedln: true}); c. res.render("home-page", {user: {username: "simon", iconPath: "/images/simon.png"}, messages: { message: "hi", sender: "jo" }, isLoggedin: true } ); d. res.render("home-page", {user: { username: "simon", iconPath: "/images/simon.png"}, messages: simonsMessages, isLoggedin: true}); e. res.render("home-page", {user: {username: "simon", iconPath: "/images/simon.png"}, messages: {message: "hi", sender: "jo" }, isLoggedIn: true}, 'views/menu-bar.ejs');
Publicité