Skip to content

Instantly share code, notes, and snippets.

@mike1011
Last active July 17, 2023 19:46
Show Gist options
  • Save mike1011/ed02f17fce9f18607a97d7586873f305 to your computer and use it in GitHub Desktop.
Save mike1011/ed02f17fce9f18607a97d7586873f305 to your computer and use it in GitHub Desktop.
Interview questions for nodejs/javascript.
What is Circular Dependency?
Shallow vs Deep Copy.
Array.sort() - with numbers and strings.
PUT vs PATCH
What is package-lock.json?
---ref - https://medium.com/iquii/good-practices-for-high-performance-and-scalable-node-js-applications-part-1-3-bb06b6204197
What is this? How arrow functions using it to help the binding?
Session Management in Nodejs
API Authentication in Nodejs
Default memory size in NOdejs
High Order functions in Javascript
Features of ES6
What is arrow functions and advantages
let vs const vs var
Use destructting and spread operator with example
======= Coding =================
Reverse a string
======= REACT JS ===============
Different lifecycle methods of a component
Redux in React - what is action, reducer and dispatcher
Class vs Functional comonents
Error Boundary and how to use it.
What is react-router and how to use it.
How to handle 404 request using React router.
Types of hooks..useState hook with and without dependency
useMemo vs useCallback
======== NODEJS ================
Nodejs Performance - using PM2, Load balancer, native cluster module in node,
NodeJS Payload Validation - use express-validator/payload-validator
few ORM libraries in node
Middleware in Nodejs
Few libraries in Node - express, axios, sequelize,
Node js for Microservices -
https://medium.com/swlh/building-javascript-microservices-with-node-js-d88bf0bb2b92
https://www.turing.com/kb/how-to-build-microservices-with-node-js
Node is Single thread?
What is event loop and how it works.
working of event loop - https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick
using multithreading in nodejs - https://www.digitalocean.com/community/tutorials/how-to-use-multithreading-in-node-js
performance optimization in node -
https://www.section.io/engineering-education/performance-optimization-techniques-for-node-js/
https://www.simform.com/blog/node-js-performance/
Transaction management in node -
using sequelize - https://stackoverflow.com/questions/49654053/transaction-management-in-promises-operations-of-nodejs
using raw sql - https://sehannrathnayake.medium.com/how-to-handle-mysql-database-transactions-with-nodejs-b7a2bf1fd203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment