javascript how to check that a function has returned code example Example: javascript if return true false return condition ? value : otherValue;