Skip to content

Wrong naming: Use default arguments instead of short circuiting or conditionals #391

Closed
@agilatakishiyev

Description

@agilatakishiyev
Contributor

In most of programming languages, parameters and arguments are different concepts. Also in JS when we look at the function from inside out we say parameter and when we look at the function from outside in we say argument. And as far as I know (and read from the blogs, documentations etc), the name of the concept of defaulting the values which are passed to the function is called default parameters not default arguments So in my honest opinion this can be confusing for newbies.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @agilatakishiyev

      Issue actions

        Wrong naming: `Use default arguments instead of short circuiting or conditionals` · Issue #391 · ryanmcdermott/clean-code-javascript