When we write the below code
let promy = new Promise(executor(resolve,reject){ if(1 === 2) resolve(1); else reject("No One"); })