Skip to content

// This is a function declaration const fctStr1 = "function a() {}"; // This is a function expression const fctStr2 = "(function b() {})"; const fct1 = eval(fctStr1); // return undefined, but a is available as a global function now const fct2 = eval(fctStr2); // return the function b #3153

@alpoz11

Description

@alpoz11

Massan$

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