how to test if a javascript function works code example Example: check if function javascript variableToCheck instanceof Function