Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for ECMAScript Cookbook.
Books 1
ECMAScript Cookbook
ECMAScript Cookbook
Dictionary 1
ecmascript
A standardised specification of JavaScript, developed by Ecma International
Developer library 3
Date
on time feature, Performance.now() can provide more reliable and precise measurements of elapsed time than Date.now(). ### Get the number of seconds since the ECMAScript Epoch ```js const seconds = Math.floor(Date.now() / 1000); ``` In this case, it's important to return only an integer—so a simple division won't do. It's also important to only return actually elapsed seconds. (That's why this code uses Math.floor
JavaScript Guide
JavaScript](/docs/Web/JavaScript/Guide/Introduction#what_is_javascript) - [JavaScript and Java](/docs/Web/JavaScript/Guide/Introduction#javascript_and_java) - [ECMAScript](/docs/Web/JavaScript/Guide/Introduction#javascript_and_the_ecmascript_specification) - [Tools](/docs/Web/JavaScript/Guide/Introduction#getting_started_with_javascript) - [What's next](/docs/Web/JavaScript/Guide/Introduction#whats_next) ## Grammar
ServiceWorker
event) and [`activate`](/docs/Web/API/ServiceWorkerGlobalScope/activate_event) are fired at the service worker itself. Service workers allow static import of [ECMAScript modules](/docs/Web/JavaScript/Guide/Modules), if supported, using [`import`](/docs/Web/JavaScript/Reference/Statements/import). Dynamic import is disallowed by the specification — calling [`import()`](/docs/Web/JavaScript/Reference/Operators/import)