Javascript change the value of a key : <p>I have some data that looks like this:</p>

<pre><code>obj = {
    pref: {
      language: 'English',
    }
};
</code></pre>

<p>I want to change the value of <code>language to 'Spanish'</code></p>
