Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

what is the answer?

Please can somebody help me with the answers, heres the quiz questions:

Complete the code below to define the proper type of routes for displaying the registration form, and processing that form data:


router.
('/register' , function(req, res, next) {
  // display the form
}); 
router.
('/register' , function(req, res, next) {
  // receive the form data
}); 
Complete the following Pug (Jade) code to indicate that this Pug file inherits the base, layout.pug template:

 layout

block content
  .main.container
    .row
      .col-md-6.col-md-offset-3
        h1.display-4.m-b-2 Sign Up
```javascript
Complete the code to render the registration form when the posts a GET request to the /register route:


router.
('/register', function(req, res, next) {
  return 
.render('register', { title: 'Sign Up' });
});