in section we have explained how to use J2S compiler directives like @j2sNative inside javadocs for customizing compiler output code, and specially the directive @j2sNative for including native javascript in our java classes.
Nevertheless, there are some areas that need to be understand if you want to write native javascript code and need to integrate that native code with your java code.
this chapter will describe how, call java methods from javascript code, problems with java object+method vs - javascript objectsand javascript functions, care native objects like dom, etc,
TODO
j2s-native-mode support is expl here
a native object is TODO
why we have to be careful when dealing with native objects?
TODO