├── LICENSE ├── MEAN_interview_questions_Exp_2-3years.txt └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Rohit Wadke 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /MEAN_interview_questions_Exp_2-3years.txt: -------------------------------------------------------------------------------- 1 | ### MEAN Interview Questions for 2-3 years Experience 2 | 3 | ## Node and javascript 4 | 1. async,await and promise difference 5 | 2. callback hell how to remove this callback hell 6 | 3. error first callback 7 | 4. Nodejs and Angular difference 8 | 5. closure 9 | 6. spread operator, rest operator 10 | 7. hoisting 11 | 8. arrow function and normal function difference 12 | 9. middleware in nodejs 13 | 10. call, bind, apply with example 14 | 11. promise chaining 15 | 12. promise.all 16 | 13. libuv in nodejs, 17 | 14. architecture of nodejs 18 | 15. event loop in nodejs 19 | 16. destructuring in javascript 20 | 17. ES6 features with examples 21 | 18. var let const difference 22 | 19. null undefined undeclared 23 | 20. module.exports and exports 24 | 21. diff between typescript and javascript 25 | 22. type of Array function. 26 | 23. diff between map,filter,forEach 27 | 24. cluster,fork, process spawn in nodejs 28 | 25. Argument in javascript 29 | 26. prototyping (very important) 30 | 27. method of object creation, object cloning 31 | 28. Authorization and Authentication 32 | 29. Difference between slice and splice ( Important ) 33 | 30. Error Handling in Nodejs 34 | 31. What are packages have you used in Nodejs? 35 | 32. Difference between package.json and package-lock.json 36 | 37 | 38 | ## Angular 39 | 1. component, Directives, Pipe 40 | 2. dependency injection 41 | 3. routing, wild card routes 42 | 4. lifecycle hooks 43 | 5. communication between two component if its child parent or independent component 44 | 6. rxjs, types of rxjs 45 | 7. what is an interceptor and why we use Interceptor. 46 | 8. guards ->(CanActivate, CanActivateChild, CanDeactivate,Resolve and CanLoad) 47 | 9. knowledge of creating custom directive, pipe, module 48 | 10. Observalables and Promise differences with example 49 | 11. Difference between Angular 4 and Angular 8 50 | 12. What are Decorators in Angular? 51 | 13. Difference between Angularjs and Angular 2 {( Important ) 52 | 14. DataBindings in Angular 53 | 15. Subjects vs BehaviorSubjects 54 | 16. Lazy loading in Angular 55 | 17. Difference between Local Storage, Session Storage and Cookies 56 | 18. Starting point of Angular? 57 | 58 | 59 | ## MongoDB 60 | 1.Difference between Relational DB and Non-Relational DB 61 | 2. What is Aggregation and its pipeline stages? 62 | 3. Can we achieve joins in Mongo? Yes, vai $lookup pipeline 63 | 4. Sharding 64 | 5. Replication 65 | 66 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frequently asked MEAN Stack Interview Questions 2 | 3 | ` Click ⭐if you like the project. Pull Request is highly appreciated. ` 4 | 5 | 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. 6 | 7 | ## ![My Skills](https://skills.thijs.gg/icons?i=js,nodejs&theme=dark) JS + Nodejs 8 | - Why? What? 9 | 10 | - EventLoop 11 | 12 | - How single threaded? 13 | 14 | - threadpool? Libuv module 15 | 16 | - why express? 17 | - middleware? example 18 | 19 | - streams 20 | 21 | - event emitter 22 | 23 | - how to handle unhandledRejection, uncaughtException 24 | 25 | - module.exports vs export 26 | 27 | - higher order function 28 | - callbacks 29 | - real use case 30 | - error first callback 31 | - callback hell ? 1. example 2. how to remove the callback hell 32 | 33 | - promises 34 | - real use case 35 | - chaining 36 | - promiseall vs race vs allSettled 37 | 38 | - async/await 39 | - real use case 40 | 41 | - Hoisting 42 | - let, var, const, normal funtion 43 | - why function as expression not hoisted. 44 | - "use strict" 45 | 46 | - null undefined undeclared 47 | 48 | - call, apply, bind / context switching 49 | 50 | - prototype 51 | 52 | - closure 53 | 54 | - classes in es5 & es6 55 | 56 | - array > filter, map, reduce, foreach, slice, splice 57 | 58 | - functions > iffe, expression, normal function 59 | 60 | - es6 features 61 | - fat arrow functions > significance and use 62 | - classes 63 | - literal string 64 | - destructuring object 65 | - rest and spread operator > significance and use 66 | 67 | - Scope in JavaScript > global local lexical 68 | 69 | - File system(fs) 70 | - asynchronous > methods 71 | - synchronous > methods 72 | 73 | - settimeout, setimmediate, setInterval 74 | 75 | - cron job 76 | 77 | ### Advance Question 78 | web worker 79 | threads 80 | cluster,fork, process spwan 81 | cors issue > resolution & internal working 82 | virtual dom,real dom,real dom,shadow dom 83 | scaling 84 | 85 | ## ![My Skills](https://skills.thijs.gg/icons?i=ts&theme=dark) TypeScript 86 | Will Add Soon 87 | 88 | ## ![My Skills](https://skills.thijs.gg/icons?i=angular&theme=dark) Angular 89 | 90 | - Angular start point 91 | purpose index.html and main.ts 92 | 93 | - Decorators? 94 | 95 | - Module? imports,declaration,providers 96 | 97 | - Service? 98 | @injectable => providedin 99 | how to make singleton service > 1. providedin="root" & 2.providedin="Module_Name" 100 | 101 | - Components? 102 | - Lifecyclehooks? 103 | - children method 104 | - why ngOnchanges called first 105 | - parameters 106 | - can we provide service directly in component? how? how many instances created? 107 | 108 | - Pipes 109 | - Custom Pipes ? how to implement and real example 110 | - Pure pipes 111 | 112 | - Directives 113 | - Types > why component is directive 114 | - Custom directive ? how to implement and real example 115 | 116 | - Can we use `*ngIf` and `*ngFor` on single line 117 | 118 | - Content projection 119 | 120 | - Elvis operator 121 | 122 | - Observalables vs promises? 123 | - why observables are prefered 124 | - Subjects? Subjects vs BehaviorSubjects vs ReplaySubjects 125 | - observables chaining 126 | 127 | - Interceptor > how to use ? use cases 128 | 129 | - Purpose of below files and atleast rough idea of contents 130 | - package.json & package-lock.json 131 | - angular.json 132 | - tsconfig.json 133 | 134 | - local storage, session storage and cookies 135 | 136 | - Karma & Jasmine? describe, it, Spyon, Spy, beforeEach, expect 137 | 138 | - Event binding & Property binding 139 | 140 | - Event bubbling 141 | - how to stop propagation vs prevent default 142 | - event delegation 143 | 144 | - Url/dom sanitization 145 | 146 | - Share data between component methods > total 5 method (state any 2-4) 147 | 148 | - ng-container vs ng-template 149 | 150 | - Security features in your application 151 | 152 | - Change detection 153 | - ngzone 154 | - which component lifecyclehook called 155 | 156 | - Routing 157 | - purpose of base href tag 158 | - lazy loading > what it is? how to implement 159 | - router outlet, router links, router state, routerLinkActive 160 | - Wildcard route 161 | - Route Guards > Methods and purpose (CanActivate, CanActivateChild, CanDeactivate,Resolve and CanLoad) 162 | 163 | - Just-in-Time (JIT) vs Ahead-of-Time (AOT) 164 | 165 | - rxjs, rxjs operators with example 166 | 167 | ## ![My Skills](https://skills.thijs.gg/icons?i=mongodb&theme=dark) Mongodb 168 | Why mongoose? > any other orm 169 | find 170 | aggregate > stages 171 | joins($loookup) > foreign key, left outer join only 172 | optimization 173 | replica 174 | sharding 175 | cluster 176 | 177 | ### JWT 178 | Why? 179 | (rough idea) how it works 180 | methods > use 181 | bcrypt vs jwt 182 | drawbacks 183 | 184 | ### RestApi 185 | Why? What? 186 | 187 | ### Programs 188 | string reverse (using inbuilt methods and by loop) 1. simple 2. sentence( normal, word by word reverse) 189 | string manipulation (using inbuilt methods and by loop) 190 | fibonacci series (using recursion and loop) 1. simple 2. till n terms 191 | palindrome(string and number) 192 | factorial of number (small number and big number) 193 | array (sort, find,remove duplicates, replace value, reverse, find 2nd highest number) 194 | prime number( single number, range, next of given number) 195 | let var const 196 | 0.1+0.2==0.3 (reason why not equal) 197 | console.log(3>2>1) console.log(1<2<3) 198 | console.log(1 ?? 3) 199 | methods for creating object & object cloning(shallow & deep) with example 200 | 201 | --------------------------------------------------------------------------------