Global Functionality

Like in NodeJS, your global object is available via the global alias. Prism also exposes window as a global, but only as a direct reference to the UI of your application.

A good way to think of it is to use global for logical APIs like accessing the filesystem or making a web request, and use window to display things in your UI or prompt the user for input.