title: Set nth property from object
body: <p>How can I use JavaScript to set for example the third property from an object. For example I have the following JSONP in the head of the HTML:</p>
  
  <pre><code>var translations = {
      "domain" : null,
      "plural-forms" : "nplurals=2; plural=(n != 1);",
      "messages" : {
          "Home" : ["Strona G\u0142\u00f3wna"],
          "Go to our YoYo Games Archive" : ["Przejd\u017a do Archiwum Gier YoYo"],
          "Welcome" : ["Witamy"]
      }
  };
  </code></pre>
  
  <p>To access the translation of the third message I do this: <code>Object.values(translations.messages)[2]</code>, but now I want to <em>set</em> it.</p>
  
  <p>Thanks for any help in advance. :)</p>