Coder Social home page Coder Social logo

mean-stack-interview-questions's Introduction

Frequently asked MEAN Stack Interview Questions

Click ⭐if you like the project. Pull Request is highly appreciated.

Essentially, MEAN stack is an open-source technology that includes four JavaScript-based technologies including MongoDB, ExpressJS, Angular, Node.js (MEAN). By learning and mastering MEAN stack, you can enjoy the perks of a host of domains for developing web apps and dynamic websites.

JS + Nodejs

  • Why? What?

  • EventLoop

  • How single threaded?

  • threadpool? Libuv module

  • why express?

    • middleware? example
  • streams

  • event emitter

  • how to handle unhandledRejection, uncaughtException

  • module.exports vs export

  • higher order function

    • callbacks

      • real use case
      • error first callback
      • callback hell ? 1. example 2. how to remove the callback hell
    • promises

      • real use case
      • chaining
      • promiseall vs race vs allSettled
    • async/await

      • real use case
  • Hoisting

    • let, var, const, normal funtion
    • why function as expression not hoisted.
    • "use strict"
  • null undefined undeclared

  • call, apply, bind / context switching

  • prototype

  • closure

  • classes in es5 & es6

  • array > filter, map, reduce, foreach, slice, splice

  • functions > iffe, expression, normal function

  • es6 features

    • fat arrow functions > significance and use
    • classes
    • literal string
    • destructuring object
    • rest and spread operator > significance and use
  • Scope in JavaScript > global local lexical

  • File system(fs)

    • asynchronous > methods
    • synchronous > methods
  • settimeout, setimmediate, setInterval

  • cron job

Advance Question

web worker
threads
cluster,fork, process spwan
cors issue > resolution & internal working
virtual dom,real dom,real dom,shadow dom  
scaling

TypeScript

Will Add Soon

Angular

  • Angular start point
    purpose index.html and main.ts

  • Decorators?

  • Module? imports,declaration,providers

  • Service?
    @injectable => providedin
    how to make singleton service > 1. providedin="root" & 2.providedin="Module_Name"

  • Components?

    • Lifecyclehooks?
      • children method
      • why ngOnchanges called first
      • parameters
      • can we provide service directly in component? how? how many instances created?
  • Pipes

    • Custom Pipes ? how to implement and real example
    • Pure pipes
  • Directives

    • Types > why component is directive
    • Custom directive ? how to implement and real example
  • Can we use *ngIf and *ngFor on single line

  • Content projection

  • Elvis operator

  • Observalables vs promises?

    • why observables are prefered
    • Subjects? Subjects vs BehaviorSubjects vs ReplaySubjects
    • observables chaining
  • Interceptor > how to use ? use cases

  • Purpose of below files and atleast rough idea of contents

    • package.json & package-lock.json
    • angular.json
    • tsconfig.json
  • local storage, session storage and cookies

  • Karma & Jasmine? describe, it, Spyon, Spy, beforeEach, expect

  • Event binding & Property binding

  • Event bubbling

    • how to stop propagation vs prevent default
    • event delegation
  • Url/dom sanitization

  • Share data between component methods > total 5 method (state any 2-4)

  • ng-container vs ng-template

  • Security features in your application

  • Change detection

    • ngzone
    • which component lifecyclehook called
  • Routing

    • purpose of base href tag
    • lazy loading > what it is? how to implement
    • router outlet, router links, router state, routerLinkActive
    • Wildcard route
    • Route Guards > Methods and purpose (CanActivate, CanActivateChild, CanDeactivate,Resolve and CanLoad)
  • Just-in-Time (JIT) vs Ahead-of-Time (AOT)

  • rxjs, rxjs operators with example

Mongodb

Why mongoose? > any other orm  
	find  
aggregate > stages  
	joins($loookup) > foreign key, left outer join only  
	optimization  
replica  
sharding  
cluster  

JWT

Why?  
   (rough idea) how it works  
methods > use  
bcrypt vs jwt  
drawbacks

RestApi

Why?  What?  

Programs

string reverse (using inbuilt methods and by loop) 1. simple 2. sentence( normal, word by word reverse)  
string manipulation (using inbuilt methods and by loop)  
fibonacci series (using recursion and loop) 1. simple 2. till n terms  
palindrome(string and number)  
factorial of number (small number and big number)  
array (sort, find,remove duplicates, replace value, reverse, find 2nd highest number)  
prime number( single number, range, next of given number)
let var const  
0.1+0.2==0.3 (reason why not equal)  
console.log(3>2>1)	console.log(1<2<3)  
console.log(1 ?? 3)  
methods for creating object & object cloning(shallow & deep) with example

mean-stack-interview-questions's People

Contributors

rohya8 avatar afrushi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.