I have the following function, which itself contains a function.
var noisyFunction = function() {
return function() {
return "NOISY TOWN!"
}
}
Now, when I call noisyFunction by using
var theNoisy = noisyFunction()
the return function is what is returned.
Is there any way to just get "NOISY TOWN!" returned? I do not think the nested function can be specifically called. I feel like I am missing something.
Appreciate any direction that could be provided.