Skip to content

(Extra) Arrow Function Returning #2

@MUDev1994

Description

@MUDev1994

It is really great that you are using arrow functions!

Also if we use arrow functions and don't use curly brackets then we don't need to return, it returns automatically, so let us look at this code:

From:

}).then(response => {
return response.json();
}).then(jsonResponse => {

To:

}).then(response => response.json())
  .then(jsonResponse => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions