# JavaScript Konsole

Expression |
Result Type |
Result(s) |

## Explanation

### Operation

> When evaluate is pressed, the given expression is evaluated and the result is displayed in the result(s) field. In case of list properties being pressed, the result of the expression is taken as an object and the objects properties are displayed with their type and value in the the result(s) field.

### Expression

> Expression must be a valid javascript expression, e.g.
> `window`
> or
> `document.body.innerHTML`
> or
> `"Today: " + (new Date()).toString()`
> or
> `"Cablecar".match(/ab.*c/)`
> It is also possible to assign a value, e.g.
> `document.getElementsByTagName('H1').item(0).innerText="Hello World"`
> You may execute these examples by pasting them into the expression field.

### Result Type

> The type of the result of the given expression.

### Result(s)

> The result of the expression is implicitly converted to a primitive type by the javascript interpreter, if evaluate was pressed. When list properties was pressed, a `for (var i in obj)` loop is executed to list the properties. These object properties are in turn evaluated and their types and values are displayed.

Till Krech