Questions tagged [ecmascript-5]

ECMAScript is the name of the Ecma International Standard 262. It is based on the scripting language JavaScript which was delivered by Netscape to Ecma for standardization. The 5th Edition is an update of the 3rd edition specification after the cancellation of the 4th edition. It adds new features including strict mode, getters and setters, a JSON object, and new methods for Object, Array, Date, and Function prototypes.

In 1995 Brendan Eich of Netscape invented a scripting language JavaScript for the Netscape browser. One year later Microsoft developed a compatible dialect of the language, JScript. Lately flash platform implemented its ActionScript language based in the same standard.

Netscape delivered JavaScript to Ecma International for standardization which started the process as EcmaScript in the Ecma-262 Standard in November 1996(5).

ECMAScript-5 is an update of the EMCAScript-262 3rd edition specification after the cancellation of the 4th edition. It adds new features including strict mode, getters and setters, a JSON object, and new methods for Object, Array, Date, and Function prototypes.

Articles covering the new specification in detail are available e.g. on infoq.com and the Opera Dev Channel.

This compatibility table covers the Browser support of EcmaScript 5.

References:

  1. JavaScript Wikipedia Article
  2. EcmaScript Wikipedia Article
  3. Ecma International Website
  4. Ecma-262 Specification
  5. Press Release of Javascript Standardization
  6. EcmaScipt Edition 5 - HTML Version
  7. EcmaScript Edition 3 - PDF Version
1857 questions
0
votes
0 answers

preventing someone from modifying src of iframe

I load an iframe with src = "" on user's site to extract native constants such as Objects, Array etc. But I don't want anyone(specifically the user on whose website i am loading the iframe) to modify my src to prevent cross-site errors. I did…
megha
  • 41
  • 1
  • 7
0
votes
1 answer

babel-loader only for transpiling es6 to es5?

I use babel-loader together with Webpack to transpile JavaScript es6 to es5. Is it though possible to do the opposite? Transpile everything to es6? If not, is there another proven Webpack loader (for development or production) for that? Versions I…
Socrates
  • 8,724
  • 25
  • 66
  • 113
0
votes
1 answer

Modular JS: How to pass variables and event

I have this JS code: const getData = { // set vars start_date: , end_date: , init: function() { this.cacheDom(); …
Imnotapotato
  • 5,308
  • 13
  • 80
  • 147
0
votes
1 answer

How to remove properties from Object Jasvscript?

i was trying to delete properties which has value empty or null or undefined from object. I am able to delete properties of first level properties. But some scenario property might contain another object and that object might contain another object.…
Munna Babu
  • 5,496
  • 6
  • 29
  • 44
0
votes
1 answer

Extending Request in typescript compiles to ES5 with TypeError

I'm trying to extend Request class in Typescript as follows: export class ApiRequest extends Request { static userAgentHeader: string = ''; static xUserAgentHeader: string = ''; public body: string; constructor(url: string,…
burtek
  • 2,576
  • 7
  • 29
  • 37
0
votes
1 answer

Unable to resolve promise chain

I am trying to write a Sequelize migration script win which I am trying to update my database but it is having many asynchronous operations (database queries and then updating database with particular id) Here is my code return…
Vikas
  • 975
  • 1
  • 10
  • 34
0
votes
2 answers

ES6: Import a module as a function

I use the following (ES5) code to currently import a module and call it as a function (where ... represents some arguments): var rimraf = require("rimraf") rimraf(...) I would like to utilise ES6's import with my code so I have tried the following…
Zak
  • 1,910
  • 3
  • 16
  • 31
0
votes
2 answers

Javascript `filter` + `reduce` VS `reduce` + `if`

Object.entries(obj).reduce((acc, [key, value]) => { if (someCondition(key, value)) { acc[key] = value; } return acc; }, {}); Object.entries(obj) .filter(([key, value]) => someCondition(key, value)) .reduce((acc, [key, value]) => { …
Avery235
  • 4,756
  • 12
  • 49
  • 83
0
votes
1 answer

@feathersjs/client @feathersjs/socketio-client build fail

Used create-react-app. added the client and socketio-client. dev server runs fine. go to build : Failed to minify the code from this file: ./node_modules/@feathersjs/socketio-client/lib/index.js:10 thought I must've messed something up. so…
nacmonad
  • 41
  • 1
  • 6
0
votes
3 answers

Apply is throwing an error of Cannot read property of null

In the jstree plugin there is a function like this : this.check_node = function (obj, e) { if(this.settings.checkbox.tie_selection) { return this.select_node(obj, false, true, e); } // Removed code for readability }; So for the check_node I…
Renaud is Not Bill Gates
  • 1,684
  • 34
  • 105
  • 191
0
votes
0 answers

Get JavaScript Array of Objects to bind to .Net Core List of ViewModel

I have a JS Array of Objects which, at time of Post contains three variables per object: ParticipantId, Answer, ScenarioId During post, there is an Array the size of 8 (at current anyway) which all correctly contain data. When I call post request,…
UncountedBrute
  • 484
  • 1
  • 7
  • 25
0
votes
3 answers

re-export or dynamically export object based on condition

Here is the simple scenario, I am struggling with apicontainer.js import mockApi from './mock-api'; import realApi from './api'; function getApi() { return Cookies.get('isMock') ? mockApi: realApi; } let api = getApi(); export function…
hashbytes
  • 769
  • 1
  • 8
  • 26
0
votes
1 answer

ECMAScript 2017: Where Did "13.2 Creating Function Objects" Go (from ES5)?

In ECMA-262, version 5.x (aka. ECMAScript 5 | ES5), there used to be a section 13.2 called Creating Function Objects. I have been searching through the latest version of the standard, ECMAScript 2017 (aka. ECMAScript 8 | ES8), but cannot find a…
Magnus
  • 6,791
  • 8
  • 53
  • 84
0
votes
1 answer

minimum moving parts needed to use VueJS components, preferably in ES5

I have been around JavaScript for years but only ES5, not ES6. I have also used VueJS in a single instance by just adding this line: But now I'm at the point with VueJS where I want to start using…
Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
0
votes
0 answers

setInterval as object method

Hi I am trying to create a JS object that would serve me as a timer for my project but I have run into one problem. const timer = { timePassed : 0, countStart : Date.now(), display : document.querySelector(".timer-display-value"), updateTimer :…
MarkusSPE
  • 81
  • 1
  • 10
1 2 3
99
100