if else practice javascript

JavaScript
<script type = "text/javaScript"> 
  
// JavaScript program to illustrate If statement 
  
var i = 10; 
  
if (i > 15) 
  document.write("10 is less than 15"); 
  
// This statement will be executed 
// as if considers one statement by default 
document.write("I am Not in if"); 
  
< /script> 

Source

Also in JavaScript: