add iterators

This commit is contained in:
Sebastian McKenzie
2014-09-29 14:51:33 +10:00
parent fd932e20e9
commit b0cfbb20ca
17 changed files with 120 additions and 35 deletions

View File

@@ -10,21 +10,13 @@ arr.map(x => x * x);
```javascript
class Foo extends Bar {
constructor() {
constructor() { }
}
foo() { }
foo() {
get bar() { }
}
get bar() {
}
set bar() {
}
set bar() { }
}
```
@@ -99,6 +91,18 @@ console.log(`${x} + ${y} = ${x + y}`); // "5 + 10 = 15"
```javascript
```
## Binary and Octal Literals
```javascript
0b111110111 === 503; // true
0o767 === 503; // true
```
## Iterators
```javascript
```
## Constants
```javascript