The following code
'use strict';
function blah() {
    if (1 ==21) {
    }
    else {
        var i = 10;
        function inner() {
            console.log(i);
        }
    }
}
Produces the following error:
SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.
How can I write my function inner such that it has access to my variable 'i'? According to strict mode I need to move the function to the top but at this point 'i' has not been declared
 
     
     
     
    