next
Round
Technologies
Experiences
Contribute
Login
next
Round
Technologies
Experiences
Contribute
Login
Question Loading...
Objects
1. What is the constructor function?
Level: Expert | Frequency: High
2. What are Objects?
Level: Expert | Frequency: High
3. What are the properties of an object?
Level: Expert | Frequency: High
4. How does javascript implements object oriented programming?
Level: Expert | Frequency: High
5. What are the key differences between javascript’s Object-based Inheritance and Conventional Class-based Inheritance?
Level: Expert | Frequency: High
6. What is a prototype in JavaScript?
Level: Expert | Frequency: High
7. How we can implement prototype-based inheritance?
Level: Expert | Frequency: High
8. Explain the prototype chain and its role in property lookup.
Level: Expert | Frequency: High
9. What is the difference between an object's `__proto__` and a constructor function's `prototype` property and [[Prototype]]?
Level: Expert | Frequency: High
10. What are object wrappers for primitive type?
Level: Expert | Frequency: High
11. Can you explain the use of object wrappers with examples?
Level: Expert | Frequency: High
12. Explain how the `instanceof` operator works.
Level: Expert | Frequency: High
13. What are different methods to create an object?
Level: Expert | Frequency: High
14. What is an object initializer?
Level: Expert | Frequency: High
15. What does the `Object.create()` method do?
Level: Expert | Frequency: High
16. How are constructor functions used to create objects with shared properties and methods?
Level: Expert | Frequency: High
17. Show an example of ES6 classes to create objects and inherit properties?
Level: Expert | Frequency: High
18. What are factory functions in JavaScript ?
Level: Expert | Frequency: High
19. What are Object constructors in JavaScript ?
Level: Expert | Frequency: High
20. How can you add new properties and methods to the prototype of an existing constructor function?
Level: Expert | Frequency: High
21. What is prototype pollution, and how can it be a security risk in JavaScript?
Level: Expert | Frequency: High
22. Is modifying or extending built-in object prototypes recommended (e.g., adding a method to `Array.prototype`)? Why or why not?
Level: Expert | Frequency: High
23. What happens when you try to access a property that doesn't exist on an object?
Level: Expert | Frequency: High
24. How can you prevent or mitigate prototype pollution vulnerabilities in your code?
Level: Expert | Frequency: High
25. How does the `Object.prototype.hasOwnProperty()` method work?
Level: Expert | Frequency: High
26. How can you optimize prototype chain lookup for better performance?
Level: Expert | Frequency: High
27. Can you explain how `Object.prototype.constructor` property works?
Level: Expert | Frequency: High
28. What is the difference between modifying the prototype of an object and adding a property directly to the object?
Level: Expert | Frequency: High
29. How does JavaScript handle circular references in object prototypes?
Level: Expert | Frequency: High
30. What is static dispatching in object-oriented programming?
Level: Expert | Frequency: High
31. What is the purpose of the `Object.keys()` method?
Level: Expert | Frequency: High
32. Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.
Level: Expert | Frequency: High
All Topics
Engine
JIT
V8
Event Loop and Runtime
Concurrency and Threading
Bytecode and Parsing
Execution Context
Data Types
Functions
String Operations
Array Operations
This
Call Apply Bind
Closure
Objects
ES6 Classes
Events
ES6
Promises
Iterator and Generator
Error Handling
Web Workers
PWA
Web Sockets
Web Assembly
Garbage Collector
Modules
Browser APIS
Functional Programming
Currying
Higher Order Functions
Memoisation
Design Patterns
Security
Cheatsheets
Code