IIF
Immediately Invoking Function to avoid variable hositing
JavaScript
var main = (n,d) =>{
if(n>0){
}else{
console.log("Number should be greater than zero");
}
}
var main = (n,d) =>{
if(n>0){
}else{
console.log("Number should be greater than zero");
}
}