what is the difference between dijit.byId('someId').value and dijit.byId('someId').get('value')
<p>When I am doing the validation at client side for one of my application. I got these questions in my mind.</p>

<p>Question1 : what is the difference between dijit.byId('someId').value and dijit.byId('someId').get('value')</p>

<p>Question2: </p>

<pre><code>for(indx in strg){
        comment+=strg[indx].replace(/([^\x00-\x7E]|\\s*\\n)*$/g, '');
    }
</code></pre>

<p>In the above js snippet, I got the following error in Browser console</p>

<pre><code>replace is not a function
</code></pre>

<p>Can you please help me someone to solve this</p>

<p>Thanks.</p>