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.

I am currently looking up objects in an array using one value, item number. However, if there happened to be multiple orders that both had the same item number on them, how could the particular object ...

Preface: I purchased a book in 2015 to learn javascript, now fast forward 2018 i read that book and come to find out ES6 is the new standard. New syntax is weird. long story short my code is breaking ...

Can someone explain the part in the exports section, I seem to lost and stuck for a while. Starting from importPromise. It seems like there's a lot going on, such as arrow functions and map method. I ...

So I am building a web data connector for Tableau.
I am replacing some special characters in the object keys of an array. It works fine on a simulator, but not in Tableau Desktop.
I get the error that ...

Hello everybody
I have a question about DataTable and their API about add new row. I'm using DataTable with a jQuery with ES5 ( Yes, I need that combination).
I have a button with a function what I ...

All my experience with exporting/importing modules has come in ES6 using export and import, where you can do something like this to have a single module export a default function as well as separate ...

I'm using node.js version 10.13.0, with SEQUELIZE version 4.42.0, and I try to define a set of models, but i have a problem in the date.js file, it says :
Cannot read property 'define' of undefined
...

This is a follow-up question to this:
getPathValue() function for deep objects with arrays and with packed JSON
The accepted answer works very well in most situations:
function getPathValue(object, ...

I have a section of code that extracts a list of users from a Google group, it looks at a 'top level' group, then extracts the user email and the group they are in. In the case of nested groups, it ...

For background, please refer to this question:
Access deep object member of embeded JSON
The solutions offered there worked very well with the packed JSON contained in key values.
However, they don'...

We want to prevent developers from using ES6 features (e.g. let, const, ...) in their javascript codes. So is it possible to configure SonarJS plugin to create issue for ES5-incompatible codes?
I'm ...

I am trying to build out a "How Much car can I afford" calculator that takes three arguments: Monthly Payment, interest Rate, and loan length. The three values are then calculated to present to user ...

I want to integrate this library in my vue project:
https://github.com/ZemezPlugins/rd-navbar
But I got very strange errors, when I include it with a require I get the following error: Cannot assign ...

Having the following code, the output is undefined when calling the Play method from my object instance while I was expecting the 'this' keyword to reference the global variable and display "Football" ...

I've never done anything like this before and are struggling to get this working, I have tried different code samples online but to no joy.
I want to return the displayName from the 5 objects in the ...