Skip to content

Conversation

@AshokaJS
Copy link
Owner

ques1 :- Write a function that can stop execution of a function for the number of milliseconds
sent as an argument
Example:
const func = async () => {
console.log(“Printing before”)
//Call your function here eg. sleep(3000)
console.log(“Printing after”)
}

ques2 :- Using promises - write a function that fetches data from an API endpoint (GET
https://reqres.in/api/users ). Log the data into the console once it is received

@AshokaJS AshokaJS requested a review from gauravsorte February 17, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants