JavaScript Tricky Question: Promise Handling

🚨 JavaScript Tricky Question #3 (Advanced) What will be the output? 🤯 Promise.resolve() .then(() => { console.log("A"); throw new Error("Error!"); }) .catch(() => { console.log("B"); }) .then(() => { console.log("C"); }); Think carefully (this is tricky) 💬 Comment your answer 👇 🔁 Follow for daily advanced JS questions #javascriptdeveloper #mernstackdeveloper #frontendinterview #javascriptquestions #webdevelopmenttips #learnjavascript #jsconcepts #asyncjavascript #developersindia #codinginterview #softwaredeveloperlife #nodejsdeveloper #reactdeveloper #techcareers

To view or add a comment, sign in

Explore content categories