if
,else
,while
,for
,do
```js
var a = 'foo';
function b(){
return a;
}
b();
```
- array methods:
.filter
,.map
,.reduce
,.find
, etc.
```js
function Foo(){}
Foo.prototype.bar = function(){}
var foo = new Foo();
```
```js
var foo = {
bar: 'bar'
};
```
```js
var items = {};
function add( key, value ) {
items[key] = value;
}
function get( key ) {
return items[key];
}
function exists( key ) {
return !!items[key];
}
function remove( key ) {
delete item[key];
}
```