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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ This list contains a longer list of important JavaScript questions. Not all of t
112
112
| 35 |[What's a typical use case for anonymous functions in JavaScript?](#whats-a-typical-use-case-for-anonymous-functions-in-javascript)| Intermediate |
113
113
| 36 |[What is recursion and how is it used in JavaScript?](#what-is-recursion-and-how-is-it-used-in-javascript)| Basic |
114
114
| 37 |[What are default parameters and how are they used?](#what-are-default-parameters-and-how-are-they-used)| Basic |
115
-
| 38 |[Explain why the following doesn't work as an IIFE: `function foo(){}();`. What needs to be changed to properly make it an IIFE?](#explain-why-the-following-doesnt-work-as-an-iife-function-foo--what-needs-to-be-changed-to-properly-make-it-an-iife)| Advanced |
115
+
| 38 |[Explain why the following doesn't work as an IIFE: `function foo(){}();`. What needs to be changed to properly make it an IIFE?](#explain-why-the-following-doesnt-work-as-an-iife-function-foo-what-needs-to-be-changed-to-properly-make-it-an-iife)| Advanced |
116
116
| 39 |[What are the various ways to create objects in JavaScript?](#what-are-the-various-ways-to-create-objects-in-javascript)| Basic |
117
117
| 40 |[Explain the difference between dot notation and bracket notation for accessing object properties](#explain-the-difference-between-dot-notation-and-bracket-notation-for-accessing-object-properties)| Basic |
118
118
| 41 |[What are the different methods for iterating over an array?](#what-are-the-different-methods-for-iterating-over-an-array)| Basic |
The code `function foo(){}();` doesn't work as an Immediately Invoked Function Expression (IIFE) because the JavaScript parser treats `function foo(){}` as a function declaration, not an expression. To make it an IIFE, you need to wrap the function in parentheses to turn it into a function expression: `(function foo(){})();`.
3248
+
The code `function foo(){}();` doesn't work as an Immediately Invoked Function Expression (IIFE) because the JavaScript parser treats `function foo(){}` as a function declaration, not an expression. To make it an IIFE, you need to wrap the function in parentheses to turn it into a function expression: `(function foo(){})();`.
@@ -7270,7 +7270,7 @@ JavaScript interview questions categorized by difficulty.
7270
7270
6.[What are proxies in JavaScript used for?](#what-are-proxies-in-javascript-used-for)
7271
7271
7.[What are workers in JavaScript used for?](#what-are-workers-in-javascript-used-for)
7272
7272
8.[How does JavaScript garbage collection work?](#how-does-javascript-garbage-collection-work)
7273
-
9.[Explain why the following doesn't work as an IIFE: `function foo(){}();`. What needs to be changed to properly make it an IIFE?](#explain-why-the-following-doesnt-work-as-an-iife-function-foo--what-needs-to-be-changed-to-properly-make-it-an-iife)
7273
+
9.[Explain why the following doesn't work as an IIFE: `function foo(){}();`. What needs to be changed to properly make it an IIFE?](#explain-why-the-following-doesnt-work-as-an-iife-function-foo-what-needs-to-be-changed-to-properly-make-it-an-iife)
7274
7274
10.[How can you implement secure authentication and authorization in JavaScript applications?](#how-can-you-implement-secure-authentication-and-authorization-in-javascript-applications)
7275
7275
11.[How can you optimize DOM manipulation for better performance?](#how-can-you-optimize-dom-manipulation-for-better-performance)
7276
7276
12.[How can you optimize network requests for better performance?](#how-can-you-optimize-network-requests-for-better-performance)
0 commit comments