Question 3. What will be the output of the below code in the console?File: my_module.jsexports.name = 'Zeus'; Code:var my_module = require('./mymodule');console.log((function(settings){ return settings.split('').reverse().join('')})(my_module.name));
Question 5. Route paths, in combination with a request method, define the endpoints at which requests can be made. Which of following are valid form of route path?
Question 8. Imagine that you sent following ajax request:$.post("/process", {name:'john'}, function(data){ // Do some stuff}); What will be the answer from the server?Tip: On server side, we have the code which is given below Code:app.post('/process', function(req, res){ var data = ''; if(req.xhr){ data += 'One'; } if(req.body.name){ data += 'Two'; } res.send(data);});