@resourcio_ answer is option B
total 2 messages get logged to console where first data received is logged after 2 seconds,then data received and processed after 1 second. It shows how the resolve passes data with it for fulfilling promises asynchronously.
@resourcio_ if API fetch is succesful after 1 second, "Fetched Data: {JSON object}" — from console.log("Fetched Data:", data) and after another second the transform function will evaluate in logging-> "Transformed Data: UPPERCASE_TITLE" — from console.log(transformed)
@resourcio_ The code will log "Data received" after approximately 2 seconds i.e. option B. The callback is scheduled it execution to 2 seconds till which normal background operations happen by main thread.
@resourcio_ The output would be "Start, End, Inside Timeout", because that is how async programming works in JS, where the function body execution delay by timeout function won't affect the rest of the program to operate.
7/7: To recap: MVPs are key, empathy is queen, challenges are growth, and community is strength. Let's carry these lessons forward! Share your thoughts or questions below. Let's engage & evolve together! #StartupJourney#ThankYouAvishek
6/7: Lastly, thanks to the AoT Techfest community for creating spaces where sharing knowledge can turn into collective progress for all of us. Communities like this shine a light on the path to innovation. 💡 #TechFest#CommunityPower
Got to know a great tagline but important concept in form like since overriding depends on object and static stuff does not ,so static stuff cannot be overrides but can be inherited.