Skip to content

homework ten#11

Open
ChrissyDev wants to merge 2 commits intomainfrom
homework-ten
Open

homework ten#11
ChrissyDev wants to merge 2 commits intomainfrom
homework-ten

Conversation

@ChrissyDev
Copy link
Owner

No description provided.

@@ -0,0 +1,7 @@
function delayedOutput(text, milliseconds) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function name should represent an action - "What to do?"

Comment on lines 3 to 7
const todoResponse = await fetch('https://jsonplaceholder.typicode.com/todos/1');
const userResponse = await fetch('https://jsonplaceholder.typicode.com/users/1');

const todoData = await todoResponse.json();
const userData = await userResponse.json();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be 2 separated functions for user and todo

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

Comments