IIF

Immediately Invoking Function to avoid variable hositing

by Venkatesh Dematti

JavaScript

var main = (n,d) =>{
  if(n>0){
  
    
  }else{
  	console.log("Number should be greater than zero");
  }
}