javascript function with if else code example
Example: if condition javascript
if (condition){
// if true then execute this -}
else{
// if statment is not true then execut this -
}
if (condition){
// if true then execute this -}
else{
// if statment is not true then execut this -
}