JavaScript Browser APIs | Async, Storage & Fetch (MCQs)

1. Which function runs code after a specified delay?





2. Which function repeatedly runs code at fixed time intervals?





3. What is the time unit used in setTimeout and setInterval?





4. Which method stops a running setInterval?





5. Where is LocalStorage data stored?





6. Which method is used to save data in LocalStorage?





7. What data type does LocalStorage store?





8. Which API is used to get data from a server?





9. What does fetch() return?





10. Which keyword is used to handle successful or failed promises?





11. Which keyword makes asynchronous code easier to read?





12. What does the await keyword do?





13. Which project commonly uses LocalStorage?





14. Which project uses Fetch API to get live data?





15. Browser APIs are mainly used to:





Wait for 20 seconds...

Post a Comment

Previous Post Next Post