<story><title>HTML5 Deck of Cards</title><url>http://pakastin.github.io/deck-of-cards/</url></story><parent_chain><item><author>riebschlager</author><text>Maybe it&amp;#x27;s a weird takeaway, but this line is really clever:&lt;p&gt;var suit = i &amp;#x2F; 13 | 0;&lt;p&gt;That&amp;#x27;s such a clean way to get a 0, 1, 2 or 3 from each card&amp;#x27;s `i` and I &lt;i&gt;never&lt;/i&gt; would have thought of it.</text></item></parent_chain><comment><author>takeda</author><text>If you&amp;#x27;re referring to |0 then I would disagree. It shows how horrible JavaScript is. This is very confusing if you&amp;#x27;re not familiar with this trick or strange behavior of the language.&lt;p&gt;&lt;pre&gt;&lt;code&gt;    suit = int(i &amp;#x2F; 13)
    suit = (int)(i &amp;#x2F; 13)
    suit = math.floor(i &amp;#x2F; 13)
&lt;/code&gt;&lt;/pre&gt;
Are much easier to understand for someone not familiar with the code.</text></comment>
<story><title>HTML5 Deck of Cards</title><url>http://pakastin.github.io/deck-of-cards/</url></story><parent_chain><item><author>riebschlager</author><text>Maybe it&amp;#x27;s a weird takeaway, but this line is really clever:&lt;p&gt;var suit = i &amp;#x2F; 13 | 0;&lt;p&gt;That&amp;#x27;s such a clean way to get a 0, 1, 2 or 3 from each card&amp;#x27;s `i` and I &lt;i&gt;never&lt;/i&gt; would have thought of it.</text></item></parent_chain><comment><author>pakastin</author><text>I think &amp;quot;value | 0&amp;quot; is basically same as &amp;quot;Math.floor(value)&amp;quot;</text></comment>