Like javascript if a condition defines its value ?, see this example:
<script type="text/javascript">
var bar = ("something" == true);
alert(bar);
if ("something") {
alert("hey!");
}
</script>
Why am I getting the point // 2, and the "bar" in // 1 is false?
As I can see, the value is barcalculated almost the same as the if condition, or is it not?
source
share