Skip to content

Commit ae7402a

Browse files
committed
fixing layout issue on basic-level and sing-thread-nature content
1 parent e201c1d commit ae7402a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

en/interview-questions/basic-level.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ var obj2 = obj;
395395

396396
# 3. Data Types and Operator
397397

398-
### 3.1. What are the different data types present in javascript?
398+
### 3.1. What are the different data types present in JavaScript?
399399

400-
**Answer:**
400+
**Answer:** The different data types present in JavaScript are as follows:
401401

402402
1. **Primitive types**
403403

en/miscellaneous/single-thread-nature.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ In this example, we demonstrate the single-threaded nature of JavaScript and how
7575

7676
### Benefits:
7777

78-
- Simplicity: Single-threaded execution simplifies the programming model and reduces the risk of complex concurrency-related bugs.
79-
- Predictability: The single-threaded nature makes it easier to reason about the order of execution and the state of your program.
78+
- **Simplicity:** Single-threaded execution simplifies the programming model and reduces the risk of complex concurrency-related bugs.
79+
- **Predictability:** The single-threaded nature makes it easier to reason about the order of execution and the state of your program.
8080

8181
### Challenges:
8282

83-
- Blocking Operations: Long-running operations can potentially block the main thread, leading to a poor user experience, especially in web applications.
84-
- Callback Hell: Excessive use of callbacks (often referred to as "callback hell") can make the code harder to read and maintain.
85-
- Concurrency Bottleneck: CPU-bound tasks cannot fully utilize multi-core processors because JavaScript runs in a single thread.
83+
- **Blocking Operations:** Long-running operations can potentially block the main thread, leading to a poor user experience, especially in web applications.
84+
- **Callback Hell:** Excessive use of callbacks (often referred to as "callback hell") can make the code harder to read and maintain.
85+
- **Concurrency Bottleneck:** CPU-bound tasks cannot fully utilize multi-core processors because JavaScript runs in a single thread.
8686

8787

8888
JavaScript's single-threaded nature is a defining feature of the language. While it simplifies certain aspects of programming, it also presents challenges in terms of handling asynchronous tasks and ensuring responsive applications. Effective use of asynchronous patterns and understanding the event-driven model are essential for JavaScript developers.

0 commit comments

Comments
 (0)