<p>Does anybody knows why this snippet returns <code>false</code> even if the passed string is "Active"?</p>

<pre><code>if ($('status_'+id).getText()=="Active")
</code></pre>

<p>I've also tried changing the code to</p>

<pre><code>if ($('status_'+id).getText()==String("Active"))
</code></pre>

<p>and</p>

<pre><code>if (String($('status_'+id).getText())=="Active")
</code></pre>

<p>and still no luck.</p>

<p>I've also checked <code>$('status_'+id).getText()</code> through <code>console.log</code> to verify if it really returns "Active"</p>

<p>i wonder why it doesnt work?
any ideas?</p>

A key difference between C++ and .NET/Java is the automatic reclaiming of memory that is no longer required.  This is known as
garbage collection
.  For this property, they are known as
managed
platforms.
Both Java/.NET delay the compilation of bytecode into native code until the last minute.  For this property they are known as
JIT-compiled
(Just In Time).
The C#/Java/C++ languages are known as
imperative, object-oriented
languages.
The type system in both .NET and Java only allows verifiable invocation of methods.  For this property they are known as
statically typed
.
C#/Java/C++ are
Turing complete
, meaning that, in practice, they can produce any calculation.