concept JavaFX Script in category java

This is an excerpt from Manning's book JavaFX in Action.
So far we’ve discussed what JavaFX is and why it’s needed. We’ve looked at an example of JavaFX Script and seen that it’s very different from Java, but just how different? For a true side-by-side comparison to demonstrate the benefits of JavaFX Script over Java, we need to code the same program in both languages. Listings 1.2 and 1.3 do just that, and figure 1.7 compares them visually.
As the scale of the GUI increases, Java’s verbose syntax and disjointed structure (compared to the GUI structure) quickly become a handful, while JavaFX Script, a bit like the famous Energizer Bunny, can keep on going for far longer, thanks to its declarative syntax.
For readers unfamiliar with the Java platform, appendix D provides an overview, including how the “write once, run anywhere” promise is achieved, the different editions of Java, and the versions and revision names over the years. Although JavaFX Script is independent of Java as a language, it’s reliance on the Java runtime platform means background knowledge of Java is useful.