[{"data":1,"prerenderedAt":426},["ShallowReactive",2],{"family-ecmascript":3,"family-members-ecmascript":340,"family-siblings":400},{"id":4,"title":5,"author":6,"body":7,"description":296,"extension":304,"family":305,"features":306,"homepage":313,"logo":314,"meta":315,"name":5,"navigation":316,"note":317,"path":318,"references":319,"relations":314,"seo":335,"status":336,"stem":337,"urls":314,"year":338,"__hash__":339},"families\u002Ffamilies\u002Fecmascript.md","ECMAScript","Ecma TC39 committee",{"type":8,"value":9,"toc":295},"minimark",[10,15,19,23,63,67,262,269,273,276,280,283],[11,12,14],"h2",{"id":13},"overview","Overview",[16,17,18],"p",{},"ECMAScript is a family whose unifying artifact is a document. ECMA-262 does\nnot just describe syntax — it specifies abstract operations, coercion rules,\nand the job\u002Fevent-loop model, in enough detail that independent implementations\nconverge. Members are defined by their relationship to that specification:\nimplementing it, extending it, or transpiling to it.",[11,20,22],{"id":21},"distinctive-traits","Distinctive traits",[24,25,26,39,42,49,60],"ul",{},[27,28,29,30,34,35,38],"li",{},"Dynamic typing with coercive operations. ",[31,32,33],"code",{},"=="," and ",[31,36,37],{},"+"," are specified\nalgorithms, not implementation accidents, which is why behaviour is portable\nand why the rules are worth reading.",[27,40,41],{},"Objects are prototype chains, not classes. A class in a modern member is a\nspecified desugaring to constructor functions and prototype links.",[27,43,44,45,48],{},"Functions are first-class and close over their environment, so the dominant\nmodule pattern before ",[31,46,47],{},"import"," was a closure returning an object literal.",[27,50,51,52,55,56,59],{},"One event loop, no shared-memory threads in the language. Concurrency is\ntasks and microtasks over a specified job queue, which is why ",[31,53,54],{},"async","\u002F",[31,57,58],{},"await","\nspreads uniformly across members.",[27,61,62],{},"The specification is normative and versioned, with editions published on a\nyearly cadence since ES2015 moved to a rolling process.",[11,64,66],{"id":65},"members-and-what-each-one-changed","Members and what each one changed",[68,69,70,86],"table",{},[71,72,73],"thead",{},[74,75,76,80,83],"tr",{},[77,78,79],"th",{},"Language",[77,81,82],{},"Relationship to the standard",[77,84,85],{},"What it changed",[87,88,89,108,122,136,150,164,178,192,206,220,234,248],"tbody",{},[74,90,91,98,105],{},[92,93,94],"td",{},[95,96,5],"a",{"href":97},"\u002Flanguages\u002Fecmascript",[92,99,100,104],{},[101,102,103],"em",{},"is"," the standard (ECMA-262)",[92,106,107],{},"— (the specification itself)",[74,109,110,116,119],{},[92,111,112],{},[95,113,115],{"href":114},"\u002Flanguages\u002Fjavascript","JavaScript",[92,117,118],{},"the original implementation, standardized as ECMAScript",[92,120,121],{},"— (Netscape's Mocha\u002FLiveScript, renamed December 1995)",[74,123,124,130,133],{},[92,125,126],{},[95,127,129],{"href":128},"\u002Flanguages\u002Flivescript-1995","LiveScript (1995)",[92,131,132],{},"interim name of JavaScript",[92,134,135],{},"nothing: the same language under its September 1995 name",[74,137,138,144,147],{},[92,139,140],{},[95,141,143],{"href":142},"\u002Flanguages\u002Fjscript","JScript",[92,145,146],{},"Microsoft's dialect, IE3 onward",[92,148,149],{},"host objects and conditional compilation",[74,151,152,158,161],{},[92,153,154],{},[95,155,157],{"href":156},"\u002Flanguages\u002Fjscript-net","JScript.NET",[92,159,160],{},"ES4 draft plus CLI classes",[92,162,163],{},"optional strong typing, compiled to .NET bytecode",[74,165,166,172,175],{},[92,167,168],{},[95,169,171],{"href":170},"\u002Flanguages\u002Fmanaged-jscript","Managed JScript",[92,173,174],{},"ES3 on the Dynamic Language Runtime",[92,176,177],{},"a DLR-hosted engine for Silverlight and ASP.NET Futures",[74,179,180,186,189],{},[92,181,182],{},[95,183,185],{"href":184},"\u002Flanguages\u002Fironjs","IronJS",[92,187,188],{},"ES3 on the DLR, independent project",[92,190,191],{},"an embeddable engine in the IronPython\u002FIronRuby tradition",[74,193,194,200,203],{},[92,195,196],{},[95,197,199],{"href":198},"\u002Flanguages\u002Fjavascript-osa","JavaScript OSA",[92,201,202],{},"SpiderMonkey embedded in Apple's OSA",[92,204,205],{},"AppleScript-style host scripting with Apple events",[74,207,208,214,217],{},[92,209,210],{},[95,211,213],{"href":212},"\u002Flanguages\u002Fwmlscript","WMLScript",[92,215,216],{},"ES-derived dialect for WAP",[92,218,219],{},"functions only — no objects or arrays — with device standard libraries",[74,221,222,228,231],{},[92,223,224],{},[95,225,227],{"href":226},"\u002Flanguages\u002Factionscript","ActionScript",[92,229,230],{},"ES dialect for Flash",[92,232,233],{},"classes, E4X XML literals, and the AVM2 virtual machine",[74,235,236,242,245],{},[92,237,238],{},[95,239,241],{"href":240},"\u002Flanguages\u002Ftypescript","TypeScript",[92,243,244],{},"typed superset",[92,246,247],{},"optional static types, erased at compile time",[74,249,250,256,259],{},[92,251,252],{},[95,253,255],{"href":254},"\u002Flanguages\u002Fjsplusplus","JS++",[92,257,258],{},"typed superset with sound gradual typing",[92,260,261],{},"integer types, existent types, and a walled-off dynamics boundary",[16,263,264,265,268],{},"The recurring move is ",[101,266,267],{},"hosting",": JScript.NET, Managed JScript, IronJS, and\nJavaScript OSA each embed the same core in a different runtime, and the family\ngrows through that embedding rather than through language design.",[11,270,272],{"id":271},"status","Status",[16,274,275],{},"Active and the widest of the lineages here. ECMA-262 is on an annual edition\ncadence, and the family now includes transpiled supersets and embedded engines\nas well as browser implementations.",[11,277,279],{"id":278},"history","History",[16,281,282],{},"Brendan Eich wrote Mocha at Netscape in May 1995; it shipped in a Navigator 2.0\nbeta as LiveScript in September 1995 and was renamed JavaScript on\nDecember 4, 1995. Netscape submitted it to Ecma in 1996, and the first edition\nof ECMA-262 appeared in June 1997. Microsoft shipped JScript from Internet\nExplorer 3 in 1996. The fourth edition was abandoned in 2008 and replaced by the\nHarmony process, which produced ES2015 and the yearly editions that followed.",[284,285,286],"note",{},[16,287,288,289,291,292,294],{},"Read ",[95,290,241],{"href":240}," for the superset direction and\n",[95,293,157],{"href":156}," for the embedding direction; both\ncount as members because membership here is defined by relation to the\nstandard, not by shared syntax.",{"title":296,"searchDepth":297,"depth":297,"links":298},"",2,[299,300,301,302,303],{"id":13,"depth":297,"text":14},{"id":21,"depth":297,"text":22},{"id":65,"depth":297,"text":66},{"id":271,"depth":297,"text":272},{"id":278,"depth":297,"text":279},"md","ecmascript",[307,308,309,310,311,312],"dynamic-typing","prototype-based-objects","first-class-functions","closure-scoped-modules","single-threaded-event-loop","spec-defined-runtime-semantics","https:\u002F\u002Ftc39.es\u002F",null,{},true,"The family defined by one executable specification: ECMA-262. Every member implements or extends the same dynamic, prototype-based object model and the same specified abstract operations (including the event loop), so conformance means passing the same test suite. JavaScript, TypeScript, ActionScript, and the embedded .NET and WAP dialects all descend from it.","\u002Ffamilies\u002Fecmascript",[320,323,326,329,332],{"url":321,"title":322},"https:\u002F\u002Ftc39.es\u002Fecma262\u002F","ECMA-262, ECMAScript Language Specification (latest draft) — Ecma TC39",{"url":324,"title":325},"https:\u002F\u002Fwww.ecma-international.org\u002Fpublications-and-standards\u002Fstandards\u002Fecma-262\u002F","ECMA-262 standard editions — Ecma International",{"url":327,"title":328},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20070916025300\u002Fhttp:\u002F\u002Fwp.netscape.com\u002Fnewsref\u002Fpr\u002Fnewsrelease67.html","Netscape and Sun announce JavaScript (press release, December 4, 1995)",{"url":330,"title":331},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FJavaScript_technologies_overview","JavaScript technologies overview — MDN",{"url":333,"title":334},"https:\u002F\u002Fbrendaneich.github.io\u002FStrange-Loop-2012\u002F","The State of JavaScript — Brendan Eich, Strange Loop 2012 (Mocha\u002FLiveScript\u002FJavaScript timeline)",{"title":5,"description":296},"active","families\u002Fecmascript",1997,"y1hR_ZN3lX5XLfK7xkGv_iujmjPv0K3dxWy5WCltuUA",[341,351,354,359,363,369,372,376,380,384,388,394],{"name":115,"path":114,"logo":342,"year":343,"kind":344,"status":336,"note":345,"paradigms":346,"typing":350},"\u002Flogos\u002Fjavascript.jpg",1995,"language","Netscape's browser scripting language: dynamically typed, prototype-based, garbage-collected. Standardized as ECMAScript (ECMA-262) and executed everywhere by engines like V8, SpiderMonkey, and JavaScriptCore, in browsers and Node.js.",[347,348,349],"functional","imperative","object-oriented","dynamic",{"name":129,"path":128,"logo":342,"year":343,"kind":344,"status":352,"note":353,"paradigms":314,"typing":314},"historical","The September 1995 interim name of JavaScript, shipped in the Navigator 2.0 beta between 'Mocha' (May 1995) and the December 4, 1995 Netscape-Sun announcement settling on 'JavaScript'. Same language; it was renamed, not succeeded.",{"name":143,"path":142,"logo":342,"year":355,"kind":356,"status":352,"note":357,"paradigms":358,"typing":350},1996,"dialect","Microsoft's ECMAScript dialect, shipped with Internet Explorer 3 (1996); JScript 3.0 (1997) was Microsoft's 'first scripting language to fully conform to ECMA-262', and the name avoided Sun's JavaScript trademark.",[347,348,349],{"name":5,"path":97,"logo":342,"year":338,"kind":360,"status":336,"note":361,"paradigms":362,"typing":350},"standard","The Ecma standard (ECMA-262) that browser JavaScript engines implement; TC39 develops it in the open, publishing an edition every June since the stalled fourth edition was replaced by the Harmony process in 2008.",[347,348,349],{"name":227,"path":226,"logo":364,"year":365,"kind":344,"status":352,"note":366,"paradigms":367,"typing":368},"\u002Flogos\u002Factionscript.png",1998,"ECMAScript-dialect scripting language of the Adobe Flash platform; grew from a Flash-4 'actions' toy into ActionScript 3.0 — a class-based, runtime-typed language running on the JIT-compiled AVM2 virtual machine",[347,348,349],"gradual",{"name":213,"path":212,"logo":314,"year":365,"kind":356,"status":352,"note":370,"paradigms":371,"typing":350},"WAP's JavaScript analogue for Wireless Markup Language pages (April 1998): ECMAScript-derived syntax with a bytecode-compiled low-bandwidth execution model, function-only (no objects or arrays), and six device standard libraries.",[348],{"name":199,"path":198,"logo":314,"year":373,"kind":344,"status":352,"note":374,"paradigms":375,"typing":350},2001,"Freeware Macintosh scripting language embedding Mozilla's SpiderMonkey engine into Apple's Open Scripting Architecture (2001) — JavaScript as an AppleScript alternative, with Core\u002FMacOS host objects and Apple-event bindings.",[348,349],{"name":157,"path":156,"logo":314,"year":377,"kind":344,"status":352,"note":378,"paradigms":379,"typing":368},2002,"Microsoft's 2002 CLI language for Visual Studio .NET: JScript's dynamics plus ES4-draft classes and optional strong typing, compiled to .NET bytecode. Never supported in Visual Studio's designers; died with that generation.",[348,349],{"name":171,"path":170,"logo":314,"year":381,"kind":344,"status":352,"note":382,"paradigms":383,"typing":350},2007,"Microsoft's ECMAScript 3 implementation on the Dynamic Language Runtime, shipped with Silverlight 1.1 Alpha (MIX07) and ASP.NET Futures; distinct from JScript.NET — no typed variables, classes, or assembly output.",[347,348,349],{"name":185,"path":184,"logo":314,"year":385,"kind":344,"status":352,"note":386,"paradigms":387,"typing":350},2010,"ECMAScript 3 implementation on Microsoft's Dynamic Language Runtime, embedding a JavaScript engine in .NET apps; named in the IronPython\u002FIronRuby tradition despite being an independent project by Fredrik Holmström.",[347,348,349],{"name":255,"path":254,"logo":314,"year":389,"kind":344,"status":390,"note":391,"paradigms":392,"typing":368},2011,"dormant","Typed JavaScript superset by Onux with an optional sound gradual type system: the Unified External Type walls off JS dynamics, C-style annotations hold at runtime, and integer types guarantee no NaN surprises.",[347,393,348,349],"generic",{"name":241,"path":240,"logo":395,"year":396,"kind":344,"status":336,"note":397,"paradigms":398,"typing":399},"\u002Flogos\u002Ftypescript.png",2012,"Microsoft's statically typed superset of JavaScript: optional type annotations are erased in compilation, interfaces and generics scale up contracts, and every JavaScript program is already valid TypeScript.",[347,348,349],"static",[401,404,407,408,411,414,417,420,423],{"name":402,"path":403},"ALGOL","\u002Ffamilies\u002Falgol",{"name":405,"path":406},"C","\u002Ffamilies\u002Fc",{"name":5,"path":318},{"name":409,"path":410},"HCL","\u002Ffamilies\u002Fhcl",{"name":412,"path":413},"Lisp","\u002Ffamilies\u002Flisp",{"name":415,"path":416},"ML","\u002Ffamilies\u002Fml",{"name":418,"path":419},"OBJ","\u002Ffamilies\u002Fobj",{"name":421,"path":422},"PL\u002FI","\u002Ffamilies\u002Fpl-i",{"name":424,"path":425},"Smalltalk","\u002Ffamilies\u002Fsmalltalk",1795219071660]