javascript property value dependent of other property
<p>I made an object called Fullscreen, and within the object another object called directions. so my code looks like this:</p>

<pre><code>FullScreen = {
  directions: {
    prev: -1,
    next: 1
  }
}
</code></pre>

<p>but i want to be able to set FullScreen.directions.prev from outside the object, and change FullScreen.directions.next to the negative value of the prev. any ideas how to do this?</p>
