Skip to main content

All Questions

Tagged with
0 votes
3 answers
211 views

javascript setTimeout in a while loop [duplicate]

Hello i want to have 4 timeOuts to update balls positions because the balls don't go at the same speed. here's a part of my code: var i=1; while(i<=5) { console.log(i); ...
Brinax's user avatar
  • 36
1 vote
3 answers
199 views

Modify object value in array inside map

Trying to modify object value in array on condition on some arrays the override does not work, here is my snippet const removeAction = (target, array, name) => { let mutation = JSON.parse(...
fefe's user avatar
  • 8,995
0 votes
1 answer
39 views

Adding string as key in javascript JSON [duplicate]

I am trying to update JSON based on user input. I have an existing JSON array: colorDataInitial = { "ML1TEST1" : "#120101", "ML1TEST2" : "#120101", "ML1TEST3" : "#120101", "ML1TEST4" : "...
EHarpham's user avatar
  • 622