Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
value not change in key value pair (javascript)

Hello I am wondering why the value is not changing in my key, value pair set. I believe its not changing because it looks the same before and after using console.log(). I have a picture of the console. It might be an easy solution that has to do something async happening but I can not think of the solution! The code looks like:

console.log(files[index])

files[index].name = "lol"

console.log(files[index])

1

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have replicated your issue in the console, and can see it does work.

enter image description here

You need to make sure your 'index' is in quotes.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!