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: README.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -8849,7 +8849,7 @@ The execution context is created when a function is called. The function's code
8849
8849
8850
8850
**[⬆ Back to Top](#table-of-contents)**
8851
8851
8852
-
468. ### How to find the number of parameters expected by a function?
8852
+
468. ### How to find the number of parameters expected by a function?
8853
8853
The function's object has a **length** property which tells you how many formal parameters expected by a function. This is a static value defined by the function, not the number of arguments the function is called with(__arguments.length__). The basic usage of length propery is,
8854
8854
8855
8855
```javascript
@@ -8905,18 +8905,18 @@ The execution context is created when a function is called. The function's code
8905
8905
2. In Node environment, you have to use `global`.
8906
8906
3. In Web workers, the global object is available through `self`.
8907
8907
8908
-
The `globalThis` property provides a standard way of accessing the global object without writing various code snippet to support multiple environments. For example, the global object retuned from multiple environments as shown below,
8909
-
8910
-
```javascript
8911
-
//1. browser environment
8912
-
console.log(globalThis); // => Window {...}
8908
+
The `globalThis` property provides a standard way of accessing the global object without writing various code snippet to support multiple environments. For example, the global object retuned from multiple environments as shown below,
0 commit comments