Skip to content

JS Primer has a duplicate example #70

Closed
@d3vkit

Description

@d3vkit

In the section for Arrow Functions, it reads:

// which can be shorter with explicit expression return
const add = (x, y) => x + y;

// if we want multiline, we can create an expression with ()
const add = (x, y) => x + y;

These seem the same, but I think the second example is supposed to be different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions