Skip to content

Commit e51bad8

Browse files
committed
small fixes
1 parent 8e44945 commit e51bad8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/academy/switching_to_typescript.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ This means that when using TS (a popular acronym for "TypeScript") on a large pr
4747
## [](#advantages-of-typescript) What are the advantages of using TypeScript?
4848

4949
1. The ability to **optionally** [statically type](https://developer.mozilla.org/en-US/docs/Glossary/Static_typing) your variables and functions.
50-
2. [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html), which provides you the benefits of using types, but without having to actually statically type anything. For example, if you create a variable like this: `const num = 5`, TypeScript will automatically infer that `num` is of a **number** type.
50+
2. [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html), which provides you the benefits of using types, but without having to actually statically type anything. For example, if you create a variable like this: `let num = 5`, TypeScript will automatically infer that `num` is of a **number** type.
5151
3. Access to the newest features in JavaScript before they are officially supported everywhere.
5252
4. Fantastic support with [IntelliSense](https://en.wikipedia.org/wiki/Intelligent_code_completion) and epic autocomplete when writing functions, accessing object properties, etc. Most modern IDEs have TypeScript support.
53-
5. Access to exclusive TypeScript features such as [Enums](https://www.typescriptlang.org/docs/handbook/enums.html) and [Decorators](https://www.typescriptlang.org/docs/handbook/decorators.html).
53+
5. Access to exclusive TypeScript features such as [Enums](https://www.typescriptlang.org/docs/handbook/enums.html).
54+
<!-- and [Decorators](https://www.typescriptlang.org/docs/handbook/decorators.html). -->
5455

5556
## [](#how-different-is-it) How different is TypeScript from JavaScript?
5657

0 commit comments

Comments
 (0)