javaScript nested for-in and for loops

Java inner class and static nested class