You can see there are four-string to print in the console and printed those are one by one as respectively in the above image. You can call it Synchronous.
You can see there is a string (console.log(“HI… I am the Second method to be executed”);) to be print which is inside the timeout function and also it is in the second place to be executed (ignore the empty console.log() method). But it getting two seconds to complete the execution. Because of that, the result shows it as the last printed statement. All other statements are printed without waiting for the timeout function. This is can be called Asynchronous.
In the conclusion, we can simply say the Synchronous is a method that functions waiting until its previously started functions are fully completed and the Asynchronous is a method that functions are not waiting until its previously started functions are fully completed.