Posts

Showing posts from January, 2023

Java Script

Image
Output      Anonymous fuction Arrow Function ----------------------------------------------------------------------------------------------------------------------------- Call Back Function used for event declaration in JS https://www.youtube.com/watch?v=qtfi4-8dj9c&t=89s ------------------------------------------------------------ Promises  https://github.com/sudheerj/javascript-interview-questions#what-is-a-promise Promises are used  to handle asynchronous operations  in JavaScript. They are easy to manage when dealing with multiple asynchronous operations where callbacks can create callback hell leading to unmanageable code. What is a promise A promise is an object that may produce a single value some time in the future with either a resolved value or a reason that it’s not resolved(for example, network error). It will be in one of the 3 possible states: fulfilled, rejected, or pending. Why do you need a promise Promises are used to handle asynchronous operations. They provide a

Program.cs

Image
 CORS