I am pretty new to JS "strict mode";, when I use code like:
function outer(){
"use strict";
    var ctype;
    function inner(){
        if(ctype!=undefined){
            function hello1(){
                console.log("hello1");
            }
            hello1()
        }else {
            function hello2(){
                console.log("hello2");
            }
            hello2();
        }
    }
    return inner;
}
var inner = outer();
inner();
I wonder why Chrome(ver 49) give no error, but Node.js can give "SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function."
This table points out that my Chrome should report error.
 
    