bhaiya what is the differnce between callbacks and promises both are doing their work after seoarate period of ti me
Bhaiya what is the differnce between callbacks and promises both are doing their work after seoarate period of ti me
what is parseint here !!
@Aditya-Kushwaha-914550392281281 you are right, both callbacks and promises serves the same purpose of making the flow asynchronous, but promises solves the problem we encounter with callback termed as the callback hell, when there is a work flow with a lot of content intermixing, you get ample amount of callbacks which makes it difficult to keep track of them. Here Promises comes into play, they simplify the approach by adding then() blocks.
@Aditya-Kushwaha-914550392281281 parseInt is used to parse a non int value and type cast it into int value of it’s use.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.