Spoken Tutorials - JavaScript Assignment Funded by the Ministry of Education (MoE), GOI Indian Institute of Technology Bombay, https://spoken-tutorial.org ------------------------------------------------------------- Promise and Async Await in JS 1. Open the file "assignment.js" which you have created earlier 2. Clear the existing code 3. Create a "promise p" 4. And resolve the "promise" after 2 seconds 5. Log, "Promise is resolved!" after the promise resolves 6. Else, log "Error!" 7. Open the file MyPage.html in a web browser 8. Observe the output in the browser's console