checking condition in js code example
Example 1: check if function javascript
variableToCheck instanceof Function
Example 2: if condition javascript
if (condition){
// if true then execute this -}
else{
// if statment is not true then execut this -
}