Docs > API > out
The out global variable is used to write output in the current context. If you're using the console, it will write to the output panel in the bottom left quadrant of the screen. In the context of a web template, it will write to the page document.
| Methods | |
|---|---|
| attribute(name, value [,escape=true]) | Write an attribute (to the current open element). |
| comment(text) | Write an html/xml comment, containing the supplied text. |
| endTag(name [, namespace [, prefix]]) | End an html/xml element. |
| startTag(name [,namespace [,prefix]]) | Start an html/xml element. |
| write(object [, escape=true]) | Writes the object to the output. The object is turned into a String using its toString() method. Special processing takes place if object is an E4X object, in order to ensure that valid xml/html is generated. |
| writeString(text [, escape=true]) | Write some text to the output. |
| writeln(object [,escape=true]) | Writes the object to the output (in the same way as write(), above) followed by a carriage return. |



