Question: Ruby There are at least three things wrong with this function; explain two things that you might add/change in this function to make it more

Ruby There are at least three things "wrong" with this function; explain two things that you might add/change in this function to make it more fault-tolerant and/or fix actual bugs. Please pick only two things and be specific with what you would change. def add_five_to_a_number_and_do_a_thing_with_a_block(x) x = x + 5 y = x yield(y) puts "at the end of our function, xis " + x end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
