Express - Sample Interview Question (Junior Level)

Consider the below Node.js code, what will be the response when invoking the following URL

http://localhost:8080/viewStocks/addUsertoView?name=Luk

//code
var express = require('express');
var app = express();
app.get('/viewStocks/:symbol', function(req, res){
  res.send('First Response');
});
app.get('/viewStocks/addUsertoView', function(req, res){
  res.send('Second Response');
});
app.listen(8080);

  1. First Response
  2. Second Response
  3. Empty page
  4. None of the above
Tests in Express for Juniors

Test Name Difficulty Time (minutes) No. of Questions
Express Online Test for Juniors Express Junior 20 10