JS

JavaScript Code Output Challenge - javascript nest...

15.

What will be the output of the following code?

function greet(firstName){
    function SayHello() {
        alert("Hello " + firstName);
    }
    return SayHello();
}
greet("Steve");

TypeError

Hello

Hello undefined

Hello Steve