|
1 | 1 |
|
2 |
| -# javascript-questions-pro (551 questions) |
| 2 | +# javascript-questions-pro (550 questions) |
3 | 3 |
|
4 | 4 | ## [Levels](./level/) (3)
|
5 | 5 | - [basic](./level/basic)
|
|
40 | 40 | - [database](./theme/database)
|
41 | 41 | - [memoization](./theme/memoization)
|
42 | 42 | - [performance](./theme/performance)
|
43 |
| -- [objects](./theme/objects) |
44 |
| -- [creation](./theme/creation) |
45 | 43 | - [prototype](./theme/prototype)
|
46 | 44 | - [inheritance](./theme/inheritance)
|
47 | 45 | - [higher order functions](./theme/higher_order_functions)
|
|
62 | 60 | - [splice](./theme/splice)
|
63 | 61 | - [array](./theme/array)
|
64 | 62 | - [slice](./theme/slice)
|
| 63 | +- [objects](./theme/objects) |
| 64 | +- [creation](./theme/creation) |
65 | 65 | - [rebase](./theme/rebase)
|
66 | 66 | - [version control](./theme/version_control)
|
67 | 67 | - [reflog](./theme/reflog)
|
|
196 | 196 | - [language features](./theme/language_features)
|
197 | 197 | - [concurrency](./theme/concurrency)
|
198 | 198 |
|
199 |
| -## [Tutorials with Videos](./video/) (192) |
| 199 | +## [Tutorials with Videos](./video/) (191) |
200 | 200 | - [What is IndexedDB](https://www.tiktok.com/@jsmentoring/photo/7448276165661314336)
|
201 | 201 | - [What are the options in a cookie](https://www.tiktok.com/@jsmentoring/photo/7448261980567145761)
|
202 | 202 | - [Differences between cookie, local storage and session storage](https://www.tiktok.com/@jsmentoring/photo/7448258461030173985)
|
|
214 | 214 | - [What is IndexedDB](https://www.tiktok.com/@jsmentoring/photo/7447814335323278624)
|
215 | 215 | - [What is memoization](https://www.tiktok.com/@jsmentoring/photo/7447658154155871520)
|
216 | 216 | - [What is memoization](https://www.tiktok.com/@jsmentoring/photo/7447658154155871520)
|
217 |
| -- [5 Ways to Create Objects in JavaScript](https://www.tiktok.com/@jsmentoring/photo/7447557117344582944) |
218 | 217 | - [What is a Prototype Chain in JavaScript?](https://www.tiktok.com/@jsmentoring/photo/7447534074211601697)
|
219 | 218 | - [What is a higher order function](https://www.tiktok.com/@jsmentoring/photo/7447469800642727200)
|
220 | 219 | - [What is the currying function](https://www.tiktok.com/@jsmentoring/photo/7447172210076208417)
|
@@ -559,22 +558,6 @@ Memoization is an optimization technique where function results are cached based
|
559 | 558 |
|
560 | 559 | ---
|
561 | 560 |
|
562 |
| -### 5 Ways to Create Objects in JavaScript |
563 |
| - |
564 |
| -In JavaScript, objects can be created in various ways. The five most common methods are: |
565 |
| - |
566 |
| -1. **Object Literal**: `const obj = {}` |
567 |
| -2. **Object Constructor**: `const obj = new Object()` |
568 |
| -3. **Object.create()**: `const obj = Object.create(null)` |
569 |
| -4. **Class Syntax**: `class MyClass { constructor() {} }` |
570 |
| -5. **Factory Functions**: `function createObject() { return {}}` |
571 |
| - |
572 |
| -**Tags**: [basic](./level/basic), [objects](./theme/objects), [creation](./theme/creation), [JavaScript](./theme/javascript) |
573 |
| - |
574 |
| -**URL**: [https://www.tiktok.com/@jsmentoring/photo/7447557117344582944](https://www.tiktok.com/@jsmentoring/photo/7447557117344582944) |
575 |
| - |
576 |
| ---- |
577 |
| - |
578 | 561 | ### What is a Prototype Chain in JavaScript?
|
579 | 562 |
|
580 | 563 | The prototype chain is a fundamental concept in JavaScript's inheritance model. Every object in JavaScript has a prototype, which is another object. When you access a property of an object, JavaScript will first look for it in the object itself. If not found, it will look in the object's prototype, and then the prototype's prototype, and so on, until it reaches `null`.
|
|
0 commit comments