Skip to content

Commit 986bfe8

Browse files
theme update
1 parent 3103660 commit 986bfe8

27 files changed

Lines changed: 202 additions & 41 deletions

File tree

Arrays/array.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
[← Back to Home](../index.md)
26

37
Arrays are one of the most fundamental data structures in JavaScript. They are used to store collections of values, and provide a variety of methods for manipulating and working with those values.

Closures-and-Scope/closures.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
[← Back to Home](../index.md)
26

37
# JavaScript Closures: In-Depth Guide with Examples
@@ -713,4 +717,3 @@ function bankAccount(balance) {
713717

714718
* `balance` cannot be accessed directly
715719
* True privacy without classes
716-

Data-Types/data-type.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
## JavaScript Data Types and Type Coercion
26

37
---
@@ -641,4 +645,4 @@ if ("false") { } // executes
641645
- `==` = legacy convenience
642646
- `===` = correctness
643647
- Type safety in JS is behavioral, not enforced
644-
- Robust systems reduce coercion surface area explicitly
648+
- Robust systems reduce coercion surface area explicitly

DeepCopyVSShallowCopy/shallow-deep-copy.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
# Shallow Copy vs Deep Copy in JavaScript
26

37
Understanding how JavaScript handles data updating is crucial when working with objects and arrays. This guide explains the differences between Shallow Copy and Deep Copy.
@@ -133,4 +137,3 @@ graph LR
133137
| **Memory Usage** | Low | High |
134138
| **Speed** | Fast | Slow |
135139
| **Methods** | `Object.assign`, spread | `JSON.parse/stringify`, `structuredClone` |
136-

JS-Interview-Questions/HigherOrderFunction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
[← Back to Home](../index.md)
26

37
# Higher Order Functions in JavaScript

JS-Interview-Questions/JS-Tricky-Interview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
# 🧠 Tricky JavaScript Interview Questions
26

37
> A comprehensive collection of tricky JS questions, output-based puzzles, and their detailed explanations.

JS-Interview-Questions/eventloop.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
[← Back to Home](../index.md)
26

37
# JavaScript Event Loop - Complete Interview Guide
@@ -611,4 +615,4 @@ console.log("5");
611615

612616
**Solutions:**
613617
- Problem 1: A, F, C, E, B, D
614-
- Problem 2: 4, 1, 3, 5, 2
618+
- Problem 2: 4, 1, 3, 5, 2

JS-Interview-Questions/interview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
# JavaScript Interview Guide - Complete Reference
26

37
## 1. What is the difference between 'Pass by Value' and 'Pass by Reference'?
@@ -3278,4 +3282,3 @@ await memoizedFetch('/api/users');
32783282
```
32793283

32803284
---
3281-

JS-Interview-Questions/interview_preparation.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
# Full Stack Developer MERN Interview Questions
26

37

@@ -649,7 +653,8 @@ if (cluster.isMaster) {
649653
// Workers share the TCP connection
650654
http.createServer((req, res) => {
651655
res.writeHead(200);
652-
res.end(`Hello from worker ${process.pid}\n`);
656+
res.end(`Hello from worker ${process.pid}
657+
`);
653658
}).listen(8000);
654659

655660
console.log(`Worker ${process.pid} started`);

JS-Interview-Questions/map-reduce-filters.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
layout: note
3+
---
4+
15
[← Back to Home](../index.md)
26

37
# JavaScript Array Methods: map, filter, and reduce
@@ -251,4 +255,3 @@ Understanding polyfills helps you:
251255
- `map`, `filter`, and `reduce` are essential for working with arrays in JavaScript.
252256
- They help you write clean, readable, and functional code.
253257
- Polyfills show how these methods work under the hood and are useful for learning or supporting older environments.
254-

0 commit comments

Comments
 (0)