This has been flagged as spam show
Looks like this doesn't get moderated,
but couldn't you also write...
var helloBuilder = function() { var person = 'Joe Smith'; function sayHello(){ alert('Hello,' + person + '!');
} return sayHello;
}
helloBuilder();
CRHain88 5 months ago
Comment removed
wow thanks for this explanation!! Now I'm subscribing :)
willzurmacht 8 months ago
Wait a second (7:02), what is buildSayHello?
TarpaperShackSongs 10 months ago
@TarpaperShackSongs I'm thinking that's a typo and should be helloBuilder();
montydrei 9 months ago
@montydrei It is.
jonathanmarvens 3 weeks ago
This has been flagged as spam show
Looks like this doesn't get moderated,
but couldn't you also write...
var helloBuilder = function() { var person = 'Joe Smith'; function sayHello(){ alert('Hello,' + person + '!');
} return sayHello;
}
helloBuilder();
CRHain88 5 months ago
Comment removed
CRHain88 5 months ago
Comment removed
CRHain88 5 months ago
wow thanks for this explanation!! Now I'm subscribing :)
willzurmacht 8 months ago
Wait a second (7:02), what is buildSayHello?
TarpaperShackSongs 10 months ago
@TarpaperShackSongs I'm thinking that's a typo and should be helloBuilder();
montydrei 9 months ago
@montydrei It is.
jonathanmarvens 3 weeks ago