Linked Questions
20 questions linked to/from JavaScript Loops: for...in vs for
0
votes
3
answers
148
views
JavaScript data structure : key/value with key access from the value
I need a data structure to store several JavaScript objects, and to be able to access them with a string id (get/set/delete operations).
Here is an example of the items I need to store :
var Player =...
1
vote
1
answer
63
views
Explaination needed: Different outputs when used for...in and for(;;) in JavaScript
In NodeJS, I created the following two scripts, both of them was intended to remove even numbers from an array.
This is my 1st script:
#!/usr/bin/nodejs
var myarr = [2,3,5,1,6,2,28,5,7,90,3];
...
0
votes
1
answer
68
views
Difference between normal for loop and for...in?
I'm trying to write a function to fulfil the following requirements:
Given an object and a key, "getElementsThatEqual10AtProperty" returns an array containing all the elements of the array located at ...
0
votes
0
answers
76
views
compare array values javascript replace values matched
I have two sheets, one is updated from time to time, one is the backup which it may contain some the same values of the first one, the first one needs to be updated in some columns with recorded data ...
1
vote
1
answer
61
views
invoque array in object JSON
I have invoque array Object in Object JSON but I invoque last index
var myObj, x, i, y;
myObj = {
"name": "John",
"age": 30,
"cars": [{
"n": "Ford",
"a": "BMW",
"c": "...