fixing var compilation issue in docs

This commit is contained in:
Peli de Halleux
2017-02-25 05:38:18 -08:00
parent bdc5122ce4
commit b8aa63411c
5 changed files with 43 additions and 35 deletions

View File

@@ -1,8 +1,16 @@
# Variable Declarations
Declaring a variable should be done using the ``let`` keyworld:
```typescript
let a = 10;
```
## ``var`` vs ``let``
Declaring a variable in JavaScript has always traditionally been done with the `var` keyword.
```typescript
```typescript-ignore
var a = 10;
```