What is the difference between return and just putting a variable such as the following:
return
def write_code(number_of_errors)
Ruby returns always! the best way is
def write_code(number_of_errors) (number_of_errors > 1)? "ERROR" : "No Problem" end
it means that if number_of_errors > 1 it will return ERROR else No Problem