// synchronous = Executes line by line consecutively in a sequential manner // Code that waits for an operation to complete. // asynchronous = Allows multiple operations to be performed concurrently without waiting // Doesn't block the execution flow and allows the program to continue // (I/O operations, network requests, fetching data) // Handled with: Callbacks, Promises, Async/Await // ASYNCHRONOUS function func1(callback){ setTimeout(() => {console.log("Task 1"); callback()}, 3000); } // SYNCHRONOUS function func2(){ console.log("Task 2"); console.log("Task 3"); console.log("Task 4"); } func1(func2);
you explain in such a simple, linear and logical order, when writing code. This makes it much easier to comprehend and retain such complex concepts. You have a great approach to teaching language and abstract structures. I'm a industrial psychology grad, coding is a whole different world for me.
I appreciate your videos and your teaching approach; however, I have a question about the terminology. You often refer to what's inside the function as "arguments," such as mentioning "callback" as a parameter and "func2" as an argument. Could you clarify if "callback" is actually a parameter and if "func2" is considered an argument? Thank you, sir.😊
// synchronous = Executes line by line consecutively in a sequential manner
// Code that waits for an operation to complete.
// asynchronous = Allows multiple operations to be performed concurrently without waiting
// Doesn't block the execution flow and allows the program to continue
// (I/O operations, network requests, fetching data)
// Handled with: Callbacks, Promises, Async/Await
// ASYNCHRONOUS
function func1(callback){
setTimeout(() => {console.log("Task 1");
callback()}, 3000);
}
// SYNCHRONOUS
function func2(){
console.log("Task 2");
console.log("Task 3");
console.log("Task 4");
}
func1(func2);
you explain in such a simple, linear and logical order, when writing code. This makes it much easier to comprehend and retain such complex concepts. You have a great approach to teaching language and abstract structures. I'm a industrial psychology grad, coding is a whole different world for me.
What a brilliant practical explanation 🎉🎉🎉
Best of best ytv we have never seen bro you are real man of code may your bless of code upon us😂
hey, i noticed you dont have videos on local storage or session storage, do you mind explaining them together with cookies 🍪?
I appreciate your videos and your teaching approach; however, I have a question about the terminology. You often refer to what's inside the function as "arguments," such as mentioning "callback" as a parameter and "func2" as an argument. Could you clarify if "callback" is actually a parameter and if "func2" is considered an argument? Thank you, sir.😊
bro is the best ❤❤
huge fan
Being stupid and watching this is super hard. I know what’s going on but I just can’t comprehend it
That’s me right now 😂
I have an idea what can u do after this course how abt solidity ?
By default JavaScript is Asynchronous or Synchronous ?
synchronous