Ruby - Error Handling
What does the rescue modifier do in Ruby when used like
value = 10 / x rescue 0?value = 10 / x rescue 0?10 / x raises an error (like division by zero), the rescue modifier returns 0 instead of crashing.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions