Datatype for "NaN" in validation process
<p>Goal:<br>
Evaluate a specifik value in my validation code</p>

<p>Problem:<br>
The variable "currentValue" can retrieve a value named "NaN". And i don't know what kind of datatype that shall be applied in the my validation process. </p>

<p>Based on my previous test, NaN is neither a string or int or something similiar.</p>

<p>What datatype is NaN?</p>

<pre><code>    var ddd = $('#field_timmar').val();
    //datac= $('#field_timmar').val();
    //len = currentValue.length;

    var currentValue = parseInt(ddd);


    // Validating message
    if(currentValue &lt;= 0)
    {
        $('#field_timmar_error1').show();

        $('#field_timmar_error2').hide();
        $('#field_timmar_error3').hide();

        nonError = false;
    }
    else if(currentValue == "NaN" &amp;&amp; ddd != "")
    {
        $('#field_timmar_error2').show();

        $('#field_timmar_error1').hide();
        $('#field_timmar_error3').hide();

        nonError = false;
    }
    else if(currentValue == "NaN" &amp;&amp; ddd == "")
    {
        $('#field_timmar_error3').show();

        $('#field_timmar_error1').hide();
        $('#field_timmar_error2').hide();

        nonError = false;
    }       
    else
    {
        $('#field_timmar_error1').hide();
        $('#field_timmar_error2').hide();
        $('#field_timmar_error3').hide();
    }   
</code></pre>
