if Condition
by Adhik Bagul
HTML
<p>Set the variable to different value and then try...</p>
JavaScript
var age = 20;
if (age > 18){
document.write("<b style='color: #fff;'>Qualifies for driving</b>");
}
by Adhik Bagul
<p>Set the variable to different value and then try...</p>
var age = 20;
if (age > 18){
document.write("<b style='color: #fff;'>Qualifies for driving</b>");
}