using file config message in javascript
<p>I would use a message file to various warnings that are given to the user, use a file msg.js</p>

<pre><code>var mensaje = {
        DATOS_VACIOS : "Verifique los campos ...."
}
</code></pre>

<p>call</p>

<pre><code>alert(mensaje.DATOS_VACIOS);
</code></pre>

<p>I wonder if anyone knows a way to do better, or that involves having this object in memory, if it can degrade performance.</p>

<p>Thank you.</p>
