# モダンなJavaScriptの機能

TypeScriptが提供する大きなメリットの1つは、古いバージョン(ES5以下)のJavaScript実行環境(IE9やNode.jsなど)で、新しいバージョン(ES6以降)の機能を利用できることです。ここでは、モダンなJavaScriptの機能がいかに便利であるか、という理由を詳しく説明します。そして、TypeScriptを使った場合に、それらがどのようにコンパイルされるかを説明します。

注： これらの機能のすべてが、近い将来、JavaScriptに追加されるとは限りません。しかし、これらの機能を使うことにより、メンテナンスしやすく、クリーンなコードを書くことができます。あなたのプロジェクトに必要ないものは無視していただいても問題ありません。しかし、最終的には、ほとんどの機能を使うことになるでしょう。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://typescript-jp.gitbook.io/deep-dive/future-javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
