Synchronous vs Asynchronous Js
what is synchronous code ? JavaScript is fundamentally a synchronous, single-threaded language that executes code line-by-line in a sequential order, where each instruction must complete before the

Search for a command to run...
Articles tagged with #interview-preparations
what is synchronous code ? JavaScript is fundamentally a synchronous, single-threaded language that executes code line-by-line in a sequential order, where each instruction must complete before the

to understand why async nature was introduced you must know about callbacks and promises . after reading these you will know about callback hell and how promises solve it . now there is problem with p

even if you have heard callback function for the first time , let me clear one thing it is no different from a function . If you can digest this then callbacks will be damn easy . you should already h

i am confident that you have faced errors in your life but this life hardly allows to manage those and lets you move forward :( while programming too when an error is occurred you have seen that a big

i am sure you have used this in you daily life to point something so that others can know what are you talking about . if you have this understanding then you are good to go . the definition goes as -

it is very confusing to differentiate between the two as both have same syntax (...) . lets look at them one by one . Spread Operator Expands an iterable into individual elements resulting in a new ar
