You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Advanced-DOM-APIs/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -446,4 +446,8 @@ try {
446
446
}
447
447
```
448
448
449
-
In this example, a custom `Error` object is created by extending the `Error` class and adding a custom name. The error is then thrown and caught using a `try...catch` statement, just like before.
449
+
In this example, a custom `Error` object is created by extending the `Error` class and adding a custom name. The error is then thrown and caught using a `try...catch` statement, just like before.
450
+
451
+
* * *
452
+
453
+
[<imgalign="center"src="../images/left_arrow.png"height="20"width="20"/> Constructor Functions and Prototypes](../Constructor-Functions-and-Prototypes/README.md) [<imgalign="center"src="../images/home.png"height="20"width="20"/> Home](../README.md) [Working with Events <imgalign="center"src="../images/right_arrow.png"height="20"width="20"/>](../Working-with-Events/README.md)
Copy file name to clipboardExpand all lines: Advanced-Function-Concepts/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,4 +188,8 @@ As a consequence, it was hard to control where variables were available. Variabl
188
188
console.log(age); // Error: "age is not defined"
189
189
```
190
190
191
-
Not something you see too often but something that is possible.
191
+
Not something you see too often but something that is possible.
192
+
193
+
* * *
194
+
195
+
[<imgalign="center"src="../images/left_arrow.png"height="20"width="20"/> Working with Events](../Working-with-Events/README.md) [<imgalign="center"src="../images/home.png"height="20"width="20"/> Home](../README.md) [More on Numbers and Strings <imgalign="center"src="../images/right_arrow.png"height="20"width="20"/>](../More-on-Numbers-and-Strings/README.md)
Copy file name to clipboardExpand all lines: Basics/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -904,4 +904,8 @@ There are different algorithms used for garbage collection, such as *reference c
904
904
905
905
- Use `setTimeout` or `setInterval` with care, as they can cause memory leaks if not used properly. It's important to clear these timers when they are no longer needed.
906
906
907
-
By following these best practices, you can ensure that your JavaScript code is efficient and free from memory leaks.
907
+
By following these best practices, you can ensure that your JavaScript code is efficient and free from memory leaks.
[<imgalign="center"src="../images/left_arrow.png"height="20"width="20"/> More on Objects](../More-on-Objects/README.md) [<imgalign="center"src="../images/home.png"height="20"width="20"/> Home](../README.md) [Constructor Functions and Prototypes <imgalign="center"src="../images/right_arrow.png"height="20"width="20"/>](../Constructor-Functions-and-Prototypes/README.md)
Copy file name to clipboardExpand all lines: Constructor-Functions-and-Prototypes/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ As we know, this is going to fail since there is no such method `printRating()`
312
312
Now, since the object is already created, we would want to adjust it's prototype. We can do this by using global [`Object`](https://developer.mozilla.org/en-US/docs/Glossary/Global_object) method [`setPrototypeOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf).
In this example, we create a new object called `myPrototype` with a property `a` set to `1`. We then create a new object called `myObject` using `Object.create()`, passing in `myPrototype` as the prototype object. We then use `Object.defineProperties()` to define the `b` property of `myObject` with a value of `2` and a `writable` property set to `true`. We can then access the `b` property of `myObject`, which outputs `2`.
391
+
392
+
* * *
393
+
394
+
[<imgalign="center"src="../images/left_arrow.png"height="20"width="20"/> Classes and Object Oriented Programming (OOP)](../Classes-and-Object-Oriented-Programming/README.md) [<imgalign="center"src="../images/home.png"height="20"width="20"/> Home](../README.md) [Advanced DOM APIs <imgalign="center"src="../images/right_arrow.png"height="20"width="20"/>](../Advanced-DOM-APIs/README.md)
0 commit comments