next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
Questions
32 of 32
1
What is the constructor function?
2
What are Objects?
3
What are the properties of an object?
4
How does javascript implements object oriented programming?
5
What are the key differences between javascript’s Object-based Inheritance and Conventional Class-based Inheritance?
6
What is a prototype in JavaScript?
7
How we can implement prototype-based inheritance?
8
Explain the prototype chain and its role in property lookup.
9
What is the difference between an object's `__proto__` and a constructor function's `prototype` property and [[Prototype]]?
10
What are object wrappers for primitive type?
11
Can you explain the use of object wrappers with examples?
12
Explain how the `instanceof` operator works.
13
What are different methods to create an object?
14
What is an object initializer?
15
What does the `Object.create()` method do?
16
How are constructor functions used to create objects with shared properties and methods?
17
Show an example of ES6 classes to create objects and inherit properties?
18
What are factory functions in JavaScript ?
19
What are Object constructors in JavaScript ?
20
How can you add new properties and methods to the prototype of an existing constructor function?
21
What is prototype pollution, and how can it be a security risk in JavaScript?
22
Is modifying or extending built-in object prototypes recommended (e.g., adding a method to `Array.prototype`)? Why or why not?
23
What happens when you try to access a property that doesn't exist on an object?
24
How can you prevent or mitigate prototype pollution vulnerabilities in your code?
25
How does the `Object.prototype.hasOwnProperty()` method work?
26
How can you optimize prototype chain lookup for better performance?
27
Can you explain how `Object.prototype.constructor` property works?
28
What is the difference between modifying the prototype of an object and adding a property directly to the object?
29
How does JavaScript handle circular references in object prototypes?
30
What is static dispatching in object-oriented programming?
31
What is the purpose of the `Object.keys()` method?
32
Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.
javascript
Basics
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
Security
Code
Polyfills
Questions
All Topics
A-
Reset
A+
32 / 32
Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.
javascript
Copy
javascript
Copy
Suggest Improvement