JavaScript

本項は書きたての記事です。正確な情報は公式サイト、公式ドキュメント、記載の参照サイトでご確認ください。

目次

+ 読む

概要

1995年、Brendan Eich氏を初めとするMozilla社によって開発されたウェブブラウザ向けスクリプト言語。
Mocha、LiveScriptと呼ばれていたが当時のSUN microsystems社と提携関係あったことからJavaScriptと改称された。
JavaScriptはMicrosoftや開発者たちとの権利争いがあって実質2009年で開発が中断されている。
2015年ごろからECMAScriptがEU諸国手動で開発が進行し、毎年メンテナンスされて更新されている。

TypeScript

2012年にMicrosoftがリリース。ver1.0は2014年リリース。
ECMAScriptをベースとしており、TypeScriptで書かれたコード(.ts)はコンパイル(トランスコンパイル・トランスパイル)で.jsファイルを出力してブラウザ上で動作する形。
開発環境としてnode.js/npmの環境が必要となる。
型の異なる関数呼び出し、代入などをコンパイル時に検出することで品質を高めることができる。

React、Angular、Vue、expressなど主要JSフレームワークで採用されておるデファクトスタンダードである。

主なビルトイン関数など

別ページ「JavaScript/関数」に記載

歴史

+ 読む
Edition Date published Changes from prior edition
1 Jun-97 First edition
2 Jun-98 Editorial changes to keep the specification fully aligned with ISO/IEC 16262 international standard
3 Dec-99 Added regular expressions, better string handling, new control statements, try/catch exception handling, tighter definition of errors, formatting for numeric output and other enhancements
4 Abandoned Fourth Edition was abandoned, due to political differences concerning language complexity. Many features proposed for the Fourth Edition have been completely dropped; some are proposed for ECMAScript Harmony.
5 Dec-09 Adds "strict mode", a subset intended to provide more thorough error checking and avoid error-prone constructs. Clarifies many ambiguities in the 3rd edition specification, and accommodates behaviour of real-world implementations that differed consistently from that specification. Adds some new features, such as getters and setters, library support for JSON, and more complete reflection on object properties.[9]
5.1 Jun-11 This edition 5.1 of the ECMAScript Standard is fully aligned with third edition of the international standard ISO/IEC 16262:2011.
6 June 2015[10] The Sixth Edition, known as ECMAScript 2015,[11] adds significant new syntax for writing complex applications, including classes and modules, but defines them semantically in the same terms as ECMAScript 5 strict mode. Other new features include iterators and for/of loops, Python-style generators and generator expressions, arrow functions, binary data, typed arrays, collections (maps, sets and weak maps), promises, number and math enhancements, reflection, and proxies (metaprogramming for virtual objects and wrappers). As the first “ECMAScript Harmony” specification, it is also known as “ES6 Harmony”.
7 Work in progress The Seventh Edition is in a very early stage of development, but is intended to continue the themes of language reform, code isolation, control of effects and library/tool enabling from ES6. New features proposed include concurrency and atomics, zero-copy binary data transfer, more number and math enhancements, syntactic integration with promises, observable streams, SIMD types, better metaprogramming with classes, class and instance properties, operator overloading, value types (first-class primitive-like objects), records and tuples, and traits.[12][13]


参考

ECMAScript - Wikipedia, the free encyclopedia <https://en.wikipedia.org/wiki/ECMAScript>
最終更新:2022年11月27日 12:11