Anubhav Anand Raianubhavanand.hashnode.dev路Dec 25, 2023Promises in javascriptconsole.log("Anubhav and javascript"); function passwordchecker(Password){ let prom=new Promise((resolve,reject)=>{ if(Password.length>8) { resolve("yes it is more") } else { reject(" not applicable") } }); prom.then((result) => { console.log(result)...Javascript Promises
Sagar Medtiyablog.sagarmedtiya.com路Aug 18, 2022馃Understanding Promises in JavaScript馃殌What is a Promise馃? By the definition of MDN, The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. We know that JavaScript is a synchronous programming language but callback functi...4 likes路927 readsJavaScript 101promises