Skip to content

Tail Calls: Non-simple parameter in strict mode  #125

@guilbep

Description

@guilbep

Should we keep the use strict statement?

repl: Non-simple parameter in strict mode (1:22)
> 1 | function factorial(n, acc = 1) {
    |                       ^
  2 |     'use strict';
  3 |     if (n <= 1) return acc;
  4 |     return factorial(n - 1, n * acc);

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