"JavaScript if else statement"
Bootstrap 4.1.1 Snippet by danteferrero

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <p>An if statement is a single line in JavaScript that is used to make decisions based on conditions. The if else statement can be used anywhere you need to compare two values and if one of them is false evaluate your code. The <strong><a href="https://www.androidaura.com/javascript/javascript-if-else">JavaScript if else statement</a></strong> is a conditional-compilation construct, which means it promotes code reuse by jumping to another file in your page or page's head before executing the body of that function or script. </p>

Related: See More


Questions / Comments: