Can I chain a substring check in javascript?
<p>I am using the following code:</p>

<pre><code>if (store.getItem('TopicID') != "00")
</code></pre>

<p>TopidID is always 4 digits and what I need to do is change this to check if the last two digits are "00". </p>

<p>Can I do this as part of the above by just adding ".substring(from, to)" or do I need to put this into a variable and then check the variable?</p>
