1 parent 53ab4a8 commit d4038cdCopy full SHA for d4038cd
1 file changed
13_Async/async.txt
@@ -1 +1,18 @@
1
-there is a catch..
+there is a catch..
2
+
3
+Javascript is single thread langaugue means every code you see is execute by the single code
4
5
+JS -> shows the synchronous structure of the code..
6
+each operation is waot until the first operation is execute
7
8
+Blocking Code vs Non-Blocking Code =>
9
10
+BC => Block the flow of the program e.g., Read file synchronously
11
+NBC => Does not block execution e.g., Read File Async
12
13
+There is no such like non-blocking code is best or blocking code is the best
14
+every type of the code has it's own use cases
15
16
+BC use case -> if you want to register in the form but before completion of
17
+the form you get the successful message of completion of the student
18
+registeration let say so, it is not good
0 commit comments