Preview:
app.get('/:character', (req, res) => { // !'/:variable means we return dynamic value
  // * creates a constant which stores return from request parameter character

  const chosen = req.params.character;

  // What does this log?
  // * console logs the above return from request
  console.log(req.params);
  console.log(chosen);
  // * ends function response
  res.json(chosen);
  res.end();
});
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter