{"id":14973227,"url":"https://github.com/rohya8/mean-stack-interview-questions","last_synced_at":"2025-10-26T23:30:35.241Z","repository":{"id":46331591,"uuid":"316182849","full_name":"rohya8/mean-stack-interview-questions","owner":"rohya8","description":"Click ⭐if you like the project. Pull Requests are highly appreciated.","archived":false,"fork":false,"pushed_at":"2023-07-06T04:17:13.000Z","size":74,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T00:51:07.545Z","etag":null,"topics":["angular","angular4","express","interview-prep","interview-preparation","interview-questions","javascript","jwt","mean-stack","mongodb","moongose","nodejs","stack-interview-questions","typescript"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohya8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-26T09:32:45.000Z","updated_at":"2024-10-10T14:21:10.000Z","dependencies_parsed_at":"2023-02-09T19:31:14.937Z","dependency_job_id":null,"html_url":"https://github.com/rohya8/mean-stack-interview-questions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2Fmean-stack-interview-questions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2Fmean-stack-interview-questions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2Fmean-stack-interview-questions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2Fmean-stack-interview-questions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohya8","download_url":"https://codeload.github.com/rohya8/mean-stack-interview-questions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238408632,"owners_count":19467140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular4","express","interview-prep","interview-preparation","interview-questions","javascript","jwt","mean-stack","mongodb","moongose","nodejs","stack-interview-questions","typescript"],"created_at":"2024-09-24T13:48:24.669Z","updated_at":"2025-10-26T23:30:29.816Z","avatar_url":"https://github.com/rohya8.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frequently asked MEAN Stack Interview Questions\n\n  ` Click ⭐if you like the project. Pull Request is highly appreciated. `\n\n  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.\n\n## ![My Skills](https://skills.thijs.gg/icons?i=js,nodejs\u0026theme=dark)  JS + Nodejs\n   - Why? What?\n\t\n   - EventLoop\n\t\n   - How single threaded? \n   \n   - threadpool? Libuv module\n\n   - why express?  \n        - middleware? example  \n\t\t\t\t\t\n   - streams\n   \n   - event emitter\n\t\n   - how to handle unhandledRejection, uncaughtException\n   \n   - module.exports vs export\n\n   - higher order function\n\t - callbacks\n\t\t- real use case  \n\t\t- error first callback\n\t\t- callback hell ? 1. example 2. how to remove the callback hell\n\t\t\t\t\t\n\t - promises  \n\t   - real use case  \n\t   - chaining  \n\t   - promiseall vs race vs allSettled\n\t\t\t\n\t - async/await  \n\t   - real use case   \n\n  - Hoisting  \n  \t- let, var, const, normal funtion  \n\t- why function as expression not hoisted.  \n\t- \"use strict\"  \n\n  - null undefined undeclared\n\t\t\n  - call, apply, bind  / context switching\n  \n  - prototype\n  \n  - closure\n  \n  - classes in es5 \u0026 es6\n\n  - array \u003e filter, map, reduce, foreach, slice, splice  \n\t\n  - functions \u003e iffe, expression, normal function  \n\n - es6 features  \n\t - fat arrow functions \u003e significance and use  \n\t - classes  \n\t - literal string  \n\t - destructuring object  \n\t - rest and spread operator \u003e significance and use  \n\n  - Scope in JavaScript \u003e global local lexical\t\n\t\t\n - File system(fs)  \n\t - asynchronous \u003e methods  \n\t - synchronous \u003e methods  \n\t\n  - settimeout, setimmediate, setInterval \n\t\n  - cron job\n\t\t\t\t\t\n### Advance Question \n\tweb worker\n\tthreads\n\tcluster,fork, process spwan\n\tcors issue \u003e resolution \u0026 internal working\n\tvirtual dom,real dom,real dom,shadow dom  \n\tscaling\n\t\n## ![My Skills](https://skills.thijs.gg/icons?i=ts\u0026theme=dark) TypeScript\n\tWill Add Soon\n\n## ![My Skills](https://skills.thijs.gg/icons?i=angular\u0026theme=dark) Angular\n\n - Angular start point  \n\tpurpose index.html and main.ts\n\t\n  - Decorators?  \n  \n  - Module? imports,declaration,providers\n\t\n  - Service?  \n\t@injectable =\u003e providedin  \n\thow to make singleton service \u003e 1. providedin=\"root\" \u0026 2.providedin=\"Module_Name\"  \n\t\t\t\n  - Components?  \n\t - Lifecyclehooks?  \n\t\t- children method  \n\t\t- why ngOnchanges called first  \t\t\t\n\t\t- parameters  \n\t\t- can we provide service directly in component? how? how many instances created?  \n\t\t\n  - Pipes  \n\t - Custom Pipes ? how to implement and real example  \n\t - Pure pipes  \n\t\t\n - Directives \n\t - Types \u003e why component is directive  \n\t - Custom directive ? how to implement and real example  \n\t \n - Can we use `*ngIf` and `*ngFor` on single line\n\t\n - Content projection\n \n - Elvis operator\t\n\t\t\n - Observalables vs promises?  \n\t - why observables are prefered  \n\t - Subjects? Subjects vs BehaviorSubjects vs ReplaySubjects  \t\n\t - observables chaining  \n\n - Interceptor \u003e how to use ? use cases\n\t\n - Purpose of below files and atleast rough idea of contents  \n  \t- package.json \u0026 package-lock.json  \n\t- angular.json  \n\t- tsconfig.json  \n\n - local storage, session storage and cookies\n\n - Karma \u0026 Jasmine? describe, it, Spyon, Spy, beforeEach, expect\n\n - Event binding \u0026 Property binding\n\t\n - Event bubbling \n  \t- how to stop propagation vs prevent default  \n\t- event delegation  \n\t\t\n - Url/dom sanitization\n\n - Share data between component methods \u003e total 5 method (state any 2-4)\n\t\n - ng-container vs ng-template\n\t\n - Security features in your application\n\t\n - Change detection  \n\t - ngzone  \n\t - which component lifecyclehook called\n\n - Routing  \n\t - purpose of base href tag  \n\t - lazy loading \u003e what it is? how to implement  \n\t - router outlet, router links, router state, routerLinkActive  \n\t - Wildcard route  \n\t - Route Guards \u003e Methods and purpose (CanActivate, CanActivateChild, CanDeactivate,Resolve and CanLoad)\n\n - Just-in-Time (JIT) vs Ahead-of-Time (AOT)\n \n - rxjs, rxjs operators with example\n\n## ![My Skills](https://skills.thijs.gg/icons?i=mongodb\u0026theme=dark) Mongodb\n\tWhy mongoose? \u003e any other orm  \n  \t\tfind  \n  \taggregate \u003e stages  \n    \tjoins($loookup) \u003e foreign key, left outer join only  \n    \toptimization  \n  \treplica  \n  \tsharding  \n  \tcluster  \n\t\n### JWT \n\tWhy?  \n   \t   (rough idea) how it works  \n\tmethods \u003e use  \n  \tbcrypt vs jwt  \n\tdrawbacks\n\t\n### RestApi\n\tWhy?  What?  \n\n### Programs\n\tstring reverse (using inbuilt methods and by loop) 1. simple 2. sentence( normal, word by word reverse)  \n\tstring manipulation (using inbuilt methods and by loop)  \n\tfibonacci series (using recursion and loop) 1. simple 2. till n terms  \n\tpalindrome(string and number)  \n\tfactorial of number (small number and big number)  \n\tarray (sort, find,remove duplicates, replace value, reverse, find 2nd highest number)  \n\tprime number( single number, range, next of given number)\n\tlet var const  \n\t0.1+0.2==0.3 (reason why not equal)  \n\tconsole.log(3\u003e2\u003e1)\tconsole.log(1\u003c2\u003c3)  \n\tconsole.log(1 ?? 3)  \n\tmethods for creating object \u0026 object cloning(shallow \u0026 deep) with example\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fmean-stack-interview-questions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohya8%2Fmean-stack-interview-questions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fmean-stack-interview-questions/lists"}