bhylu.com

Advertisements

JS Versions

ECMAScript specifies the language, while browsers and other runtimes supply implementations. Use an explicit compatibility target for a real project.

Where to run this

This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.

A practical example

JavaScript

const requirements = ["Syntax", "Built-in methods", "Browser APIs"];
console.log(requirements.join(" + "));

What happens

All three parts need a compatibility decision.