Tutorial on JavaScript
==============================

This tutorial presents easy to read code examples on common usage of JavaScript code together with a reference into MDN for details.



Language constructs
------------------------------


### Conditional statements

* [if, elseif, else](if.md)
* [switch](switch.md)



### Loops and iteration

* [for](for.md)
* [while](while.md)
* [do..while](do-while.md)



Types and builtin objects
------------------------------

* [variables](variables.md)
* [type](type.md)
* [array](array.md)
* [function](function.md)
* [object](object.md)

* [math](math.md)



DOM
------------------------------

* [innerHTML](innerhtml.md)

* [createElement](create-element.md)
* [append](append.md)

* [style colors](style-colors.md)
* [positioning](positioning.md)
* [inputField](inputField.md)
* [getSize](getSize.md)
* [getComputedStyle](getComputedStyle.md)



Events
------------------------------

* [onClick](onclick.md)
* [addEventListener](addEventListener.md)
* [setInterval](setInterval.md)



Reference
------------------------------

[MDN JavaScript Guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide)
[MDN JavaScript Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference)



Revision history
------------------------------

2014-10-08 (B, mos) Added `getComputedStyle`.
2014-08-29 (A, mos) Reviewed it.

