x && x.foo() && x.bar() syntax in javascript - what does it mean
<p>I am ramping up on some code and found this structure multiple times throughout the code: <code>y &amp;&amp; y.someProp &amp;&amp; y.someFunction();</code>:</p>

<pre><code>  $rootScope.funct = function() {
      $timeout(function() {
        var y = service.doSomething();
        y &amp;&amp; y.someProp &amp;&amp; y.someFunction();
      });
    } else {
      var y = service.doSomething();
      y &amp;&amp; y.doSomethingElse();
    }
  };
</code></pre>

<p>What is the purpose of this? Does it stop execution of the program if both <code>y &amp;&amp; something else</code> both don't complete or are otherwise falsey? </p>