how to make function return something else if false in javascript code example Example: javascript if return true false return condition ? value : otherValue;