Public Repository for Web Development Course for Beginners
Dont read me :-
-
java script functions are hoisted as they can be accessed before declaring . if a function is called first then it is declared it will give results after that too
-
function expressions are not hoisted
-
javascript not need semicolon , js engine provide a auto assignment of semicolon during runtime
-
jb app ek function ko dusre function me as a parameter pass krte ho toh usko hmlog bolte hai call back function.
-
Synchronous:- code will run line by line will follow a order in sync
-
Asynchronous:- code will not run in order ,setTimeout(() => { } is an asynchronous function .
-
Nested callback functions are called call back hell
-
To avoid call back hell we use promises