<h1> Equal operator comparison </h1>
<h2>Double Equals</h2>
<table id ="double-equals" class="table table-striped">
<thead><tr><th>Comparison</th><th>Result</th></tr></thead>
<tbody></tbody>
</table>
<p class="well">
Double equals is not the same as triple equals when it comes to javascript. Notice that some things are unexpectedly true exmaple 0 == "" is true when only compared with double equals vs its false when compared with triple equals. Double equals can somehow be helpful when you want to check if the value is either null or undefined you can quickly just do if(val == null) instead of if(val == null || val == undefined). Also notice that double equals does not check for the data type behind the comparator, example 2 == '2' is true but not true in triple equals.
</p>
<h2>Triple Equals</h2>
<table id ="triple-equals" class="table table-striped">
<thead><tr><th>Comparison</th><th>Result</th></tr></thead>
<tbody></tbody>
</table>
<p class="well">
Triple equals is much tighter comparison in javascript, it also checkes the data type example see that 2 === '2' is false while its true in double equals
</p>
<hr>
<h1> Or (||) operator comparison </h1>
<table id ="or" class="table table-striped">
<thead><tr><th>Comparison</th><th>Result</th></tr></thead>
<tbody></tbody>
</table>
<p class="well">
This works like standard || or operator, if the value of the first comparator does not equals to true it will select the other value. See section <a href="#truthy-value">truthy value</a> for which values return false when asked for boolean value.
</p>
<h1 name="truthy-value" id="truthy-value"> Truthy value </h1>
<table id ="truthy" class="table table-striped">
<thead><tr><th>Comparison</th><th>Result</th></tr></thead>
<tbody></tbody>
</table>