JavaScript & Node.
js Interview Preparation Notes
JavaScript Basics
JavaScript is a scripting language used to create dynamic and interactive web applications.
• Variables: var, let, const
• Data Types: String, Number, Boolean, Array, Object
• Functions: Reusable blocks of code that perform a task
• Arrays: Collection of values stored in a single variable
• Objects: Collection of key-value pairs
• Events: Used to respond to user actions like clicks
[Link] Basics
[Link] is a JavaScript runtime environment that allows JavaScript to run on the server.
• Used for backend development
• Non-blocking & event-driven architecture
• Handles multiple requests efficiently
Common [Link] Concepts
• Modules: Reusable pieces of code
• npm: Node Package Manager for libraries
• [Link]: Framework for building APIs
• Middleware: Functions that run between request and response
• API: Communication between frontend and backend
Interview Tips
• Explain logic clearly
• Focus on basics
• Be honest if you don’t know an answer