To illustrate an underlying implementation of an extension using the Extension API, the following example will print a Hello World! HTML element on to the screen:
define( [ ], function ( ) { return { paint: function ($element, layout) { $element.html( "Hello world! I learned how to write this using Mastering QS"); } }; } );