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;

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!