# Json question solution

**URL:** <https://forum.freecodecamp.org/t/json-question-solution/440224>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [January 12, 2021, 2:06pm UTC](https://forum.freecodecamp.org/t/json-question-solution/440224 "2021-01-12T14:06:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abid-karim](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@abid-karim](https://forum.freecodecamp.org/u/abid-karim)\
**Post date:** [January 12, 2021, 2:06pm UTC](https://forum.freecodecamp.org/t/json-question-solution/440224/1 "2021-01-12T14:06:48Z")

</div>

**Tell us what’s happening:**  
hello, i am just stuck in JSON, anyone help me to understand the question.  
how to determined the question

**Your code so far**

```js

// Setup
var collection = {
2548: {
  albumTitle: 'Slippery When Wet',
  artist: 'Bon Jovi',
  tracks: ['Let It Rock', 'You Give Love a Bad Name']
},
2468: {
  albumTitle: '1999',
  artist: 'Prince',
  tracks: ['1999', 'Little Red Corvette']
},
1245: {
  artist: 'Robert Palmer',
  tracks: []
},
5439: {
  albumTitle: 'ABBA Gold'
}
};

// Only change code below this line
function updateRecords(object, id, prop, value) {
return object;
}

updateRecords(collection, 5439, 'artist', 'ABBA');

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36`.

**Challenge:** Record Collection

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/record-collection)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Marmiz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marmiz/32/74845_2.png) [@Marmiz](https://forum.freecodecamp.org/u/Marmiz)\
**Post date:** [January 12, 2021, 2:31pm UTC](https://forum.freecodecamp.org/t/json-question-solution/440224/2 "2021-01-12T14:31:01Z")

</div>

> [@abid-karim](#):
>
> ```auto
> // Only change code below this line
> function updateRecords(object, id, prop, value) {
> return object;
> }
> 
> ```

Hi @abid-karim, I see your function being totally empty: what have you tried so far to achieve the solution?

What part of the question are you struggling with?

---

<div class="post-metadata">

**Author:** ![abid-karim](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@abid-karim](https://forum.freecodecamp.org/u/abid-karim)\
**Post date:** [January 13, 2021, 1:08pm UTC](https://forum.freecodecamp.org/t/json-question-solution/440224/3 "2021-01-13T13:08:51Z")

</div>

hello,  
will you guide me how to learn javascript

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 15, 2021, 1:09am UTC](https://forum.freecodecamp.org/t/json-question-solution/440224/4 "2021-07-15T01:09:06Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
