Just call the return value:
var theBad = badFunction()();
First, call the function badFunction, after the function finishes, it will call the returned function. The score looks something like this:
badFunction()();
^^^^^^^^^^^^^
Step 1, calls badFunction
, badFunction, :
(function() { // <-- This is the return value of badFunction
return "veryBad"
})();
^^
Step 2, call the returned function expression for "veryBad"
, , :
var veryBadFunc = badFunction();
var theBad = veryBadFunc();
veryBadFunc, , theBad. , . , - , .