//java
public class Out{
public static class In {
public String test = "Hello";
}
}
//use inner class
Out.In in = new Out.In();
System.out.print(in.test); // successful!!
//js
var in = new Out.In(); // error here.
org.mozilla.javascript.Undefined@55516dbb is not a function, it is undefined