Dec 25, 2023 路 2 min read 路 console.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)...
Join discussionAug 18, 2022 路 3 min read 路 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...
Join discussion