GEC/Scopes

Report a typo

What will be the output of the following program?

var name = "Hyperskill";

function outerFunc() {

    function innerFunc() {
        var name = "JetBrains";
    }
    console.log(name);
}

outerFunc();
Enter a short text
___

Create a free account to access the full topic