Mean Stack Interview Questions

Find latest mean stack interview questions and answers

  • Q1.

    What is the Mean Stack?

    Posted by Sharad Jaiswal
    Mean stack is combination four popular JavaScript-based technologies MongoDB, Express, AngularJS and Node that allows developers to develop complete web applications.
  • Q2.

    What is Express?

    Posted by Sharad Jaiswal
    Express
    is lightweight web framework for Node.js.It provides robust and scalable solutions to build single and multi-page web application. Express is inspired by Sinatra (Ruby framework).
  • Q3.

    Explain Mongoose?

    Posted by Sharad Jaiswal
    Mongoose is a MongoDB Object Data Modeling (ODM) library for MongoDB and NodeJS.It provides a straight-forward, schema-based solution to model your application data. It includes built-in typecasting, validation, query building, business logic hooks and more, out of the box.
  • Q4.

    How AngularJS is different from NodeJS.

    Posted by Sharad Jaiswal
    The purpose of Angular and Node Js is totally Different.
    AngularJS is front-end framework that deals with UI and client side of an application while NodeJs is a runtime environment useful in building server-side applications.
  • Q5.

    How to install express?

    Posted by Sharad Jaiswal
    Run below command to install express
    npm install express --save
  • Q6.

    Explain Routing in Express.js?

    Posted by Sharad Jaiswal
    Routing is a mechanism used by frameworks to decide how a URL/endpoint is responded/handled by the server. Express provides an excellent way to handle applications routing. Below is basic code to handle routing in Express.
    var express = require('express')
    var app = express()
    
    // respond with "hello world" when a GET request is made to the homepage
    app.get('/', function (req, res) {
      res.send('hello world')
    });