summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilippe <pvlerick@gmail.com>2014-08-14 13:34:41 +0200
committerPhilippe <pvlerick@gmail.com>2014-08-14 13:34:41 +0200
commitfda947d93997ac1253c11ebed6a8c615c49c71f5 (patch)
treee8173ab893f721402840ffef4df0f6c6fc6664f6
parent3f5251edf9acb6c64d6f3dfadafe587a218b902b (diff)
Some re-phrasing and typos
-rw-r--r--typescript.html.markdown11
1 files changed, 6 insertions, 5 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index f0667d49..410cd6e4 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -6,18 +6,19 @@ contributors:
TypeScript is a language that aims at easing development of large scale applications written in JavaScript.
TypeScript adds common concepts such as classes, modules, interfaces, generics and (optional) static typing to JavaScript.
-It is a superset of JavaScript: any JavaScript code is valid TypeScript code so it can be added seamlessly to any project.
-TypeScript code compiles down to JavaScript.
+It is a superset of JavaScript: all JavaScript code is valid TypeScript code so it can be added seamlessly to any project. In turn, the TypeScript compiler transform the code to JavaScript.
This article will focus only on TypeScript added syntax, everything else is plain [JavaScript] (../javascript/).
+To test TypeScript's compiler, head to the [Playground] (http://www.typescriptlang.org/Playground) where you will be able to type code, have auto completion and directly see the resulting JavaScript.
+
```ts
-//There are 4 basic types in TypeScript
+//There are 3 basic types in TypeScript
var isDone: boolean = false;
var lines: number = 42;
var name: string = "Anders";
-//However, when it's impossible to know, there is the "Any" type
+//When it's impossible to know, there is the "Any" type
var notSure: any = 4;
notSure = "maybe a string instead";
notSure = false; // okay, definitely a boolean
@@ -67,7 +68,7 @@ mySearch = function(src: string, sub: string) {
```
-To test TypeScript's compiler, head to the [Playground] (http://www.typescriptlang.org/Playground).
+
## Further Reading
* [TypeScript Official website] (http://www.typescriptlang.org/)