javascript check if variable is a function code example Example: check if function javascript variableToCheck instanceof Function